mirror of
https://git.kittycat.homes/zoe/pegchamp.git
synced 2024-08-15 03:15:39 +00:00
11 lines
292 B
GDScript
11 lines
292 B
GDScript
extends CanvasLayer
|
|
|
|
# set scene you want to load, uses main menu as fallback
|
|
var scene_to_load = "res://Menu/MenuPage.tscn"
|
|
|
|
func _ready():
|
|
$TransitionSprite.visible = true
|
|
$AnimationPlayer.play("FadeOut")
|
|
|
|
func finish_animation():
|
|
var _new_scene = get_tree().change_scene(scene_to_load)
|