better doublejump animation

This commit is contained in:
pennyrigate 2022-12-17 01:35:22 -05:00
parent 457333f2b2
commit 5d01f40535
12 changed files with 83 additions and 16 deletions

View file

@ -161,6 +161,7 @@ func check_jump():
func check_double_jump():
if Input.is_action_just_pressed("jump") && can_doublejump:
Game.play_sound(Game.a_doublejump,Game.ac_jump)
can_doublejump = false
velocity.y = -doublejump_force
anims.play("doublejump")