Audio system

This commit is contained in:
Rendo 2025-11-30 16:22:11 +05:00
commit de2736c701
38 changed files with 2538 additions and 78 deletions

View file

@ -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()