fixed loading bug hopefully

This commit is contained in:
Ultrablob 2024-04-23 14:43:16 -04:00
parent 5708cf5ea2
commit 6d75dd22a0
2 changed files with 7 additions and 22 deletions

View file

@ -29,6 +29,7 @@ func sort_tips():
return tips_by_level
func play():
ResourceLoader.load_threaded_request(MAIN_SCENE_PATH)
$"LoadingScreen".show()
var tip_options = []
for i in range(1, tip_level+1):
@ -37,5 +38,5 @@ func play():
var tip = pick(tip_options)
$LoadingScreen/Tip.text = "Tip: %s" % tip
await get_tree().create_timer(0.2).timeout
#var game = ResourceLoader.load_threaded_get(MAIN_SCENE_PATH)
get_tree().change_scene_to_file(MAIN_SCENE_PATH)
var game = ResourceLoader.load_threaded_get(MAIN_SCENE_PATH)
get_tree().change_scene_to_packed(game)

File diff suppressed because one or more lines are too long