saddle-up / game /loading /loading.gd
Yeehaw2026's picture
Upload folder using huggingface_hub
8438369 verified
Raw History Blame Contribute Delete
553 Bytes
extends Control
func _ready():
var _scene = load_scene()
# ⬇️ FIX APPLIED HERE ⬇️
# We use call_deferred to avoid the "Parent node is busy" crash
#call_deferred("change_scene", _scene)
change_scene(_scene)
func load_scene():
var _scene = load("res://world/scenes/world.tscn")
return _scene
func change_scene(_scene: PackedScene):
get_tree().change_scene_to_packed(_scene)
func _on_animation_player_animation_finished(anim_name):
# if anim_name == "load_scene":
# $CenterContainer/AnimationPlayer.play("change_scene")
pass