extends Node2D # 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(): randomize() func _physics_process(delta): if $Timer.is_stopped(): if randi() % 500 == 0: var rand = randi() % 2 if rand == 0: var audio = load("res://Music/Dripping Water.wav") audio.set_loop_mode(audio.LOOP_DISABLED) $Effects.set_stream(audio) $Effects.play() $Timer.start(8.0) elif rand == 1: var audio = load("res://Music/wind/Wind.ogg") audio.loop = false $Effects.set_stream(audio) $Effects.play() $Timer.start(8.0)