1
Fork 0
mirror of https://github.com/Cookie-CHR/LD54-SPAce-ltd.git synced 2024-11-23 07:44:20 +00:00
space-ltd/Music/Audio.gd
Cookie 57509881c7
✏️ Graphics and music
Main upload is now complete! I hope
2023-10-15 18:48:24 +02:00

17 lines
302 B
GDScript

extends AudioStreamPlayer
func _ready():
if self.connect("finished", reset_to_default):
print("An error has occurred: could not connect the sound")
func _play(sound):
volume_db = 2
self.stream = load("res://Music/"+sound+".mp3")
if(not Muter.mute):
play()
func reset_to_default():
pass