Player jumps whenever i switch animation

so im new to gdevelop and i’m working on walk animation

i made it in a way where if you press “D” it would add 100 to the X Axis with timeDelta() and change the animation using “change the number of animation of player: set to 1”

but i get this
https://photos.app.goo.gl/mmWyysTaZAQvsATc7

here is the events
Google Photos

Hi!

I don’t know why it jumps, but wouldn’t it be easier to use the built in platformer behaviour and remapping controls to WASD instead of writing a new function for movement?

i didn’t knew about the build in controls
thx

You are welcome. :slight_smile:

I suggest reading the platformer tutorial too, it’s really useful: How to make a platform game [GDevelop wiki]

2 Likes