landing sound

This commit is contained in:
pennyrigate 2023-10-09 15:44:37 -04:00
parent 28c5dd991d
commit b8d9a9e935
5 changed files with 22 additions and 0 deletions

View file

@ -161,6 +161,8 @@ func reset_fall_speed():
# STATE ENTERS/EXITS #
func _on_Grounded_state_entered() -> void:
#Landing sound
Audio.play_sound(Audio.a_land,Audio.ac_land)
# still jump if pressed frame hit ground
if Input.is_action_just_pressed("jump"):
state_chart.send_event("jump")