FADE SYSTEM :3
This commit is contained in:
parent
4cd2018b2c
commit
d27d9d8b83
8 changed files with 169 additions and 1 deletions
|
@ -31,6 +31,7 @@ export var target_time_any = 0
|
|||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready():
|
||||
Game.fade.fade_in(0.000000000000001)
|
||||
change_current_level(Game.current_level)
|
||||
Game.ac_music.stop()
|
||||
|
||||
|
|
|
@ -9,6 +9,11 @@ var life_bonus = true
|
|||
var collectible_bonus = false
|
||||
|
||||
func _ready():
|
||||
get_tree().paused = true
|
||||
Game.can_pause = false
|
||||
Game.fade.fade_in(0.4)
|
||||
Game.fade.connect("fade_finished", get_tree(), "set_pause", [false], CONNECT_ONESHOT)
|
||||
Game.fade.connect("fade_finished", Game, "set", ["can_pause", true], CONNECT_ONESHOT)
|
||||
Game.play_music(music)
|
||||
|
||||
func _physics_process(delta):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue