Fix Horizontal Dash Direction?

Heya, I’m making a platformer game with a dash ability using built-in Dash behaviour. The dash ability works fine out of the box. However, if you “wiggle” left and right in the air just before you press dash you can fly butt-first into the action XD

I tried fixing it, but i just can’t find a condition that could detect your angle of motion to flip the sprite correctly.

if you wiggles left and right fast, there will be frames where left and right is down at the same time, both of the flip will occurs.

i don’t know how dash works so i can’t say for sure:

but maybe try adding this in you event block that handles moving right:

Screenshot_2026-10-27_16-41-47

(this condition is called control pressed or simulated)

do not add it in the or statement

Personally, I would flip the sprite based on the direction of movement, not based on which button you press. I’m guessing you also flip it when you walk/run, etc. I would just have one global condition for angle/direction of movement, and then it does not matter if you wiggle left and right, it should flip it, because it’s moving left or right.

Good idea, but I still have the same problem. I don’t know which condition can detect the movement angle of a platformer object.

If you are using the Platformer Object behaviour, then the easiest will be probably be based on the Current Speed.

  • Character.PlatformerObject::CurrentSpeed < 0 = flip left
  • Character.PlatformerObject::CurrentSpeed > 0 = flip right

Current Speed returns negative if you move left, and positive if you move right.