attempt to fix doublejump on ground bug
This commit is contained in:
parent
b53968e9cf
commit
3532eb08f0
1 changed files with 2 additions and 0 deletions
|
@ -245,6 +245,8 @@ func check_jump():
|
||||||
move(walk_speed,0,true)
|
move(walk_speed,0,true)
|
||||||
|
|
||||||
func check_double_jump():
|
func check_double_jump():
|
||||||
|
if is_on_floor():
|
||||||
|
check_jump()
|
||||||
if Input.is_action_just_pressed("jump") && can_doublejump:
|
if Input.is_action_just_pressed("jump") && can_doublejump:
|
||||||
Game.play_sound(Game.a_doublejump,Game.ac_jump)
|
Game.play_sound(Game.a_doublejump,Game.ac_jump)
|
||||||
can_doublejump = false
|
can_doublejump = false
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue