fixed loading bug hopefully
This commit is contained in:
parent
5708cf5ea2
commit
6d75dd22a0
2 changed files with 7 additions and 22 deletions
|
@ -29,6 +29,7 @@ func sort_tips():
|
||||||
return tips_by_level
|
return tips_by_level
|
||||||
|
|
||||||
func play():
|
func play():
|
||||||
|
ResourceLoader.load_threaded_request(MAIN_SCENE_PATH)
|
||||||
$"LoadingScreen".show()
|
$"LoadingScreen".show()
|
||||||
var tip_options = []
|
var tip_options = []
|
||||||
for i in range(1, tip_level+1):
|
for i in range(1, tip_level+1):
|
||||||
|
@ -37,5 +38,5 @@ func play():
|
||||||
var tip = pick(tip_options)
|
var tip = pick(tip_options)
|
||||||
$LoadingScreen/Tip.text = "Tip: %s" % tip
|
$LoadingScreen/Tip.text = "Tip: %s" % tip
|
||||||
await get_tree().create_timer(0.2).timeout
|
await get_tree().create_timer(0.2).timeout
|
||||||
#var game = ResourceLoader.load_threaded_get(MAIN_SCENE_PATH)
|
var game = ResourceLoader.load_threaded_get(MAIN_SCENE_PATH)
|
||||||
get_tree().change_scene_to_file(MAIN_SCENE_PATH)
|
get_tree().change_scene_to_packed(game)
|
||||||
|
|
24
main.tscn
24
main.tscn
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue