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 Creating a 360 air dash on a 2d platformer based on left analog

Hi Guys, I'm trying to create a 360 degree dash on a 2d platformer (like the air dash in Celeste). Here is what I end up with alt text The problem is that the distance covered is not equal for all the input direction, "launch character" is launching my character in a parabolic curve. I'm drawing a debug arrow to aim and see the direction. Anybody has a clue on how to do it properly?

Product Version: UE 4.16
anserhub.png (265.5 kB)
more ▼

asked Mar 18 '18 at 09:45 PM in Blueprint Scripting

avatar image

1 3

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

1 answer: sort voted first

Hey @fedexmaster I got something to work using a "timeline" node and the "set velocity" node off of the character movement component. "Launch character" can be used instead of "set velocity too btw. Just be sure to overwrite both xy and z velocity

The main thing though is that you'll get much different results depending on if your dashing horizontally or vertically. This got really frustrating actually.

It's because when going horizontally, the character is working against the "falling lateral friction" value, unless he's still one the ground. If he's still on the ground, he's going against "ground friction". Both of these are found in the"character movement" component.

But when going vertically, neither one applies and your instead going against gravity. And since all three of these values are different, he'll go way WAYYYY higher when shooting up. So you'll need to adjust the strength of the "launch character" based on which direction you're going in order to get consistent results

Hope this helps!

more ▼

answered Dec 29 '18 at 12:40 AM

avatar image

Adam Kareem
21 3 2

(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