Audio system
This commit is contained in:
parent
b0ba8adcd7
commit
de2736c701
38 changed files with 2538 additions and 78 deletions
|
|
@ -6,6 +6,7 @@ func enter():
|
|||
machine.animation_player.play(machine.animation_prefix+"plant")
|
||||
machine.animation_player.animation_finished.connect(on_animation_finished)
|
||||
machine.speed_modifier = 0.0
|
||||
machine.player.get_node("PlantAudio").multiplayer_play()
|
||||
|
||||
func exit():
|
||||
machine.animation_player.animation_finished.disconnect(on_animation_finished)
|
||||
|
|
@ -26,3 +27,4 @@ func state_input(event: InputEvent) -> void:
|
|||
return
|
||||
if event.is_action_released("plr_bomb"):
|
||||
transition.emit("Idle")
|
||||
machine.player.get_node("PlantAudio").multiplayer_stop()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue