Movement problem (SOLVED)

Hello!!
I am trying to make 2d game and i have problem whit my movement script. The character needs to move until i unpress the movement button, but when i try to move my character it just moves 1 sprite and then the movement stops and the animation keeps going.

Here is my movement and animation script:
test.script (1.0 KB)

Do you have any tips that could help me?

Here’s two different example projects:

1 Like

Thank you!!! Helped a lot. Now i learned how to do it :slight_smile:

2 Likes