You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Closes#3022
## Changes:
- Fixed `getSceneName` to use `scene`.
I didn't know how to use `_sceneToInstance` cache, so I replaced it with something simpler.
Closes#3022
## Changes:
- Fixed `getSceneName` to use `scene`.
I didn't know how to use `_sceneToInstance` cache, so I replaced it with something simpler.
Discussed in #3021
Originally posted by aruru-weed April 14, 2024
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.
The text was updated successfully, but these errors were encountered: