attempt to fix doublejump on ground bug

This commit is contained in:
Haze Weathers 2023-02-10 16:33:23 -05:00
parent b53968e9cf
commit 3532eb08f0

View file

@ -245,6 +245,8 @@ func check_jump():
move(walk_speed,0,true)
func check_double_jump():
if is_on_floor():
check_jump()
if Input.is_action_just_pressed("jump") && can_doublejump:
Game.play_sound(Game.a_doublejump,Game.ac_jump)
can_doublejump = false