fossekleiva-ks-hackathon-demo/AudioStreamPlayer.gd
Daniel Løvbrøtte Olsen 915246cd2f inital
2019-09-25 21:35:43 +02:00

19 lines
492 B
GDScript3

extends AudioStreamPlayer
# Declare member variables here. Examples:
# var a = 2
# var b = "text"
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
#func _process(delta):
# pass
func _on_VisibilityNotifier2D_screen_exited():
var audio = load("res://Music/Depressed of Happytown.ogg")
set_stream(audio)
play()
AudioServer.set_bus_mute(1, true)