Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics

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

A topic by Lacroiix Lancaster created Mar 14, 2016 Views: 249 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?


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