Download game/loading/loading.gd from NeatoGames/saddle-up: direct link, hf CLI and curl.
- Browser
- Download file 553 Bytes
-
https://huggingface.co/datasets/NeatoGames/saddle-up/resolve/main/game/loading/loading.gd
- Command line
-
hf download hf://datasets/NeatoGames/saddle-up/game/loading/loading.gd
-
curl -L -o loading.gd https://huggingface.co/datasets/NeatoGames/saddle-up/resolve/main/game/loading/loading.gd
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 | |