Fix minigame scene
This commit is contained in:
@@ -44,8 +44,8 @@ Miko (smile): Want to try again?
|
||||
|
||||
- Yes, play the minigame again!
|
||||
set {Gym.minigame_done} = false
|
||||
[signal arg=start_minigame]
|
||||
[signal arg="start_minigame"]
|
||||
|
||||
- No, I understand the pattern. Back to hub.
|
||||
set {Gym.minigame_done} = false
|
||||
jump gym_main/menu
|
||||
jump gym_main/menu
|
||||
@@ -34,4 +34,6 @@ func _on_dialogic_signal(argument: Variant) -> void:
|
||||
# Tell the minigame where to return
|
||||
Dialogic.VAR.Gym.minigame_return = "standalone"
|
||||
await get_tree().create_timer(0.3).timeout
|
||||
get_tree().change_scene_to_file(MINIGAME_SCENE_PATH)
|
||||
var ret = get_tree().change_scene_to_file(MINIGAME_SCENE_PATH)
|
||||
if (ret != OK):
|
||||
print(ret)
|
||||
|
||||
@@ -37,7 +37,7 @@ Miko (smile): Ready? Let's go to the minigame!
|
||||
|
||||
# This signal is caught by gym09_controller.gd,
|
||||
# which calls get_tree().change_scene_to_file("...minigame.tscn")
|
||||
[signal arg=start_minigame]
|
||||
[signal arg="start_minigame"]
|
||||
|
||||
# This line won't be reached — the scene changes immediately
|
||||
Miko (surprise): Wait, shouldn't I still be here?
|
||||
Miko (surprise): Wait, shouldn't I still be here?
|
||||
@@ -1,10 +1,10 @@
|
||||
[gd_scene format=3]
|
||||
[gd_scene format=3 uid="uid://chavjcbwfemg4"]
|
||||
|
||||
[ext_resource type="Script" path="res://docs/gyms/gym09_scene_switching/gym09_controller.gd" id="1_ctrl"]
|
||||
[ext_resource type="Resource" path="res://docs/gyms/gym09_scene_switching/gym09_intro.dtl" id="2_intro"]
|
||||
[ext_resource type="Resource" path="res://docs/gyms/gym09_scene_switching/gym09_congrats.dtl" id="3_congrats"]
|
||||
[ext_resource type="Script" uid="uid://k82wjnwinxwp" path="res://docs/gyms/gym09_scene_switching/gym09_controller.gd" id="1_ctrl"]
|
||||
[ext_resource type="Resource" uid="uid://my3sk1mu2lx6" path="res://docs/gyms/gym09_scene_switching/gym09_intro.dtl" id="2_intro"]
|
||||
[ext_resource type="Resource" uid="uid://b8hj1owk0somk" path="res://docs/gyms/gym09_scene_switching/gym09_congrats.dtl" id="3_congrats"]
|
||||
|
||||
[node name="Gym09SceneSwitching" type="Node2D"]
|
||||
[node name="Gym09SceneSwitching" type="Node2D" unique_id=1384235952]
|
||||
script = ExtResource("1_ctrl")
|
||||
intro_timeline = ExtResource("2_intro")
|
||||
congrats_timeline = ExtResource("3_congrats")
|
||||
|
||||
Reference in New Issue
Block a user