Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Help with Pushing Blocks with Blueprint

I've been developing a 3D sidescroller in which the player runs constantly; when runs into a movable block, I want him to get into position and begin pushing it. This bit is easy; my issue is trying to get the block to move efficiently as the player continues to push the block, and then have the player stop grabbing onto the block when it collides with a wall.

To give you a visual, here's a one-minute video showing sort of what I'm going for. The only difference is that I want it to be only one side, obviously, because this is a sidescroller.


Another example would be like in Zelda. I was surprised to see that there are really no tutorials on this; the only ones I found were these:

https://www.youtube.com/watch?v=qxQug-c4hgk https://www.youtube.com/watch?v=1QSRRa0Qnz8&t=10s

The problem here is that these blueprints lead to some awful bugs, most of which I cannot fix. So I need a simpler, better way to handle it than what is shown in these tutorials. Does anyone know of a simple, efficient way to set this up?

Product Version: UE 4.16
more ▼

asked Jun 14 '17 at 06:48 PM in Blueprint Scripting

avatar image

12 1 4 7

avatar image Maladrum Jun 25 '17 at 09:29 PM

I'm going to bump this, since it's been nearly two weeks without answer.

I know it's a difficult thing to handle, but if anyone is able to offer some help, I would really appreciate it!

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Create an additional square mesh, with collision set to only overlap. Scale it to cover the areas of your object where you want the player to be able to push.

Track when the player is overlapped with this area, and use it to determine if your player can push, and set your IsPushing variable.

When the player IsPushing, slow the player. - If your cube is simulating physics. Then , and also AddForce to the cube. - If it isn't, you can set an updated location based on the player's movement vector and relative position to the cube (to detect if the player is pushing into the cube or pulling.

more ▼

answered Jun 26 '17 at 08:58 AM

avatar image

2.2k 39 17 52

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question