WIP new shard sound

This commit is contained in:
Haze Weathers 2023-01-26 22:47:52 -05:00
parent c23dd4e78f
commit 2a8ca02590
5 changed files with 6 additions and 4 deletions

View file

@ -9,7 +9,9 @@ func _ready():
func _on_Area2D_area_entered(area):
#Collect
if area.is_in_group("player"):
Game.ac_music.stream_paused = true
Game.play_sound(Game.a_shard,Game.ac_collectible)
Game.ac_collectible.connect("finished", Game.ac_music, "set_stream_paused", [false])
Game.score += 500
Game.shards += value
Game.shards_collected[number] = true