I'm trying to do a small topdown thingy.
In it, I want my player to move a bit in the direction he is moving when he attacks.
To get the direction in which he is/was moving (with 8 movement behavior), I stock the Player.8direction.MovingAngle in a variable when he is moving (so it never returns to 0 except when it is the correct angle). This variable works.
After that, I use Custom Movement to move the player (if I simply use the "Move at Angle" or "Move Forward" action it only 'teleports' the object). I use the action "Accelerate towards Angle" and use the variable I used before.
And it doesn't work. I don't get why, sometimes it slightly change for a weird angle, but I really don't get where is the problem.
Here is the event:
And here is the capx:
Thanks a lot for your help!