forked from team-sg/hero-mark-2
better doublejump animation
This commit is contained in:
parent
457333f2b2
commit
5d01f40535
12 changed files with 83 additions and 16 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue