🤑 Indie game store🙌 Free games😂 Fun games😨 Horror games
👷 Game development🎨 Assets📚 Comics
🎉 Sales🎁 Bundles

[Script] [Help] How to know what Scene is running?

A topic by Lacroiix Lancaster created 1 year ago Views: 176 Replies: 1
Viewing posts 1 to 2

So, I have one script for two Scenes (SceneA, SceneB). I want to do something like this:

if(Sup.getScene() === 'SceneA') {
//doSomething } else if (Sup.getScene() === 'SceneB') { //doOtherStuff } else { //doNothing }

The point is: I want to get the current scene running. Is it Possible?

Admin(+1)

Is this for a specific game engine? I'm not sure this is the right place to post something like this.