From 010aa5323d636d86e2c5dd2f3f54507cf1e197f4 Mon Sep 17 00:00:00 2001 From: 3wc <3wc@doesthisthing.work> Date: Wed, 14 Feb 2024 12:33:05 -0300 Subject: [PATCH] Only launch dialogue when world map shown --- src/Game.hx | 1 - src/scene/WorldMapScene.hx | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Game.hx b/src/Game.hx index 5fc5c7a..799ac27 100644 --- a/src/Game.hx +++ b/src/Game.hx @@ -81,7 +81,6 @@ class Game extends hxd.App { hxd.Res.text.intro.entry.name, ]; dialogueManager.load(yarnText, yarnFileNames); - dialogueManager.runNode("Intro"); } public function new() { diff --git a/src/scene/WorldMapScene.hx b/src/scene/WorldMapScene.hx index c87df74..8ccbed3 100644 --- a/src/scene/WorldMapScene.hx +++ b/src/scene/WorldMapScene.hx @@ -42,6 +42,8 @@ class WorldMapScene extends h2d.Flow implements GameScene implements h2d.domkit. layers.set(ld.name, l); rebuildLayer(ld.name); } + + Game.current.dialogueManager.runNode("Intro"); } public function getH2dObject() {