Merge branch 'master' of https://gitlab.hexaquo.at/mga/retrace
# Conflicts: # Level/InFactory.tscn
This commit is contained in:
commit
24baf9b6b8
22
Level/FactoryMusicHandler.gd
Normal file
22
Level/FactoryMusicHandler.gd
Normal 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()
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user