forked from team-sg/hero-mark-2
landing sound
This commit is contained in:
parent
28c5dd991d
commit
b8d9a9e935
5 changed files with 22 additions and 0 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue