# Conflicts:
#	Level/InFactory.tscn
This commit is contained in:
SyntaX 2020-01-27 14:51:17 +01:00
commit 24baf9b6b8
3 changed files with 24 additions and 2 deletions

View File

@ -0,0 +1,22 @@
extends Node
onready var inactive_music = get_node("InactiveMusic")
onready var active_music = get_node("ActiveMusic")
export(NodePath) var path_to_pipegame
var pipegame
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
inactive_music.play()
pipegame = get_node(path_to_pipegame)
pipegame.get_node("Lever").connect("start_machine", self, "activate_active_music")
func activate_active_music():
active_music.play(inactive_music.get_playback_position())
inactive_music.stop()

View File

@ -17,5 +17,5 @@ force/max_rate=false
force/max_rate_hz=44100
edit/trim=true
edit/normalize=true
edit/loop=false
edit/loop=true
compress/mode=0

View File

@ -17,5 +17,5 @@ force/max_rate=false
force/max_rate_hz=44100
edit/trim=true
edit/normalize=true
edit/loop=false
edit/loop=true
compress/mode=0