Passing sceneInstance to "Engine.director.getSceneName" does not work it. #3021
Unanswered
aruru-weed
asked this question in
Q&A
Replies: 1 comment 1 reply
-
@aruru-weed Good question, definitely seems like a bug! I'd expect it to work the way you want. My guess is there is a cache being populated in the 2nd case. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi! I was thinking of making a game using TS for the first time, and was excited to find Excalibar.js.
I'm not good at trying to manage Scenes with strings, so I use "game.goToScene(game.director.getSceneName(scene))"
When I tried that, it didn't work.
However, I discovered that by running "game.director.getSceneInstance("MapName")" before it, it works fine.
Is this nominal? If it's a bug, I'll try my best to send a pull request.
Beta Was this translation helpful? Give feedback.
All reactions