forked from team-sg/hero-mark-2
global takeover of transition_speed variable
This commit is contained in:
parent
ddafe49d12
commit
bfbc0dfd2b
18 changed files with 42 additions and 42 deletions
|
@ -5,14 +5,14 @@ onready var exit_button = $Panel/Exit
|
|||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready():
|
||||
Fade.fade_in(0.4)
|
||||
Fade.fade_in(Options.transition_speed_secs)
|
||||
get_tree().paused = true
|
||||
retry_button.grab_focus()
|
||||
Audio.ac_music.stream_paused = false
|
||||
Audio.play_music(load("res://audio/music/74(game_over).ogg"))
|
||||
|
||||
func _on_Exit_button_down():
|
||||
Fade.fade_out(0.4)
|
||||
Fade.fade_out(Options.transition_speed_secs)
|
||||
yield(Fade, "fade_finished")
|
||||
get_tree().paused = false
|
||||
SceneManager.current_scene = load("res://menus/level_select_scholar.tscn").instance()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue