camera movement & music
This commit is contained in:
18
growth/music_mixer.gd
Normal file
18
growth/music_mixer.gd
Normal file
@@ -0,0 +1,18 @@
|
||||
extends Node
|
||||
|
||||
func _ready() -> void:
|
||||
$AudioStreamPlayer.play()
|
||||
|
||||
|
||||
func _on_boss_area_entered(_body: Node2D) -> void:
|
||||
if $AudioStreamPlayer["parameters/switch_to_clip"] == "Boss":
|
||||
return
|
||||
|
||||
$AudioStreamPlayer["parameters/switch_to_clip"] = "-> Boss"
|
||||
|
||||
|
||||
func _on_boss_area_exited(_body: Node2D) -> void:
|
||||
if $AudioStreamPlayer["parameters/switch_to_clip"] == "Base":
|
||||
return
|
||||
|
||||
$AudioStreamPlayer["parameters/switch_to_clip"] = "-> Base"
|
||||
Reference in New Issue
Block a user