added note on is_on_floor function

This commit is contained in:
zymsbgt 2024-08-17 18:36:25 +08:00
parent e3fde1b50f
commit 59fd1289e8

View file

@ -24,7 +24,7 @@ func get_input():
velocity.x = input_direction * speed
if is_on_floor():
if is_on_floor(): # rest the jump count
jump_count_current = jump_count
if Input.is_action_just_pressed("player_jump") and jump_count_current > 0: