forked from team-sg/hero-mark-2
RESIDENT REVOLUTION 2083
This commit is contained in:
parent
d82b2632fa
commit
dbc046d34c
4 changed files with 117 additions and 26 deletions
|
@ -4,9 +4,9 @@ export var next_menu: PackedScene
|
|||
|
||||
func _input(event):
|
||||
if Input.is_action_just_pressed("start"):
|
||||
Fade.fade_out(0.4)
|
||||
yield(Fade, "fade_finished")
|
||||
SceneManager.current_scene = next_menu.instance()
|
||||
Audio.play_sound(Audio.a_star,Audio.ac_collectible)
|
||||
$AudioStreamPlayer.play()
|
||||
$AnimationPlayer.play("activate")
|
||||
|
||||
func _ready():
|
||||
var time = OS.get_time()
|
||||
|
@ -14,3 +14,9 @@ func _ready():
|
|||
$Night.visible = true
|
||||
else:
|
||||
$Day.visible = true
|
||||
|
||||
|
||||
func _on_AudioStreamPlayer_finished():
|
||||
Fade.fade_out(0.4)
|
||||
yield(Fade, "fade_finished")
|
||||
SceneManager.current_scene = next_menu.instance()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue