added note on is_on_floor function
This commit is contained in:
parent
e3fde1b50f
commit
59fd1289e8
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ func get_input():
|
||||||
|
|
||||||
velocity.x = input_direction * speed
|
velocity.x = input_direction * speed
|
||||||
|
|
||||||
if is_on_floor():
|
if is_on_floor(): # rest the jump count
|
||||||
jump_count_current = jump_count
|
jump_count_current = jump_count
|
||||||
|
|
||||||
if Input.is_action_just_pressed("player_jump") and jump_count_current > 0:
|
if Input.is_action_just_pressed("player_jump") and jump_count_current > 0:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue