adding movie animation

This commit is contained in:
Fabio 2024-08-20 18:13:23 +02:00
parent d255435c93
commit d29a1ff019
3 changed files with 32 additions and 11 deletions

View file

@ -60,10 +60,10 @@ func get_input(delta):
if left and right:
input_direction = 0
elif left:
animation.play("RESET")
animation.play("moving_left")
input_direction = -1
elif right:
animation.play("RESET")
animation.play("moving_right")
input_direction = 1
else:
animation.play("idle")