ambidex Posted October 16, 2014 Share Posted October 16, 2014 I've got an application which will show an scene that functions as a screensaver on a few seconds idle time. Though that works perfectly, I can't seem to get the current scene name that is running (to switch back to it when the system activates). I would've thought that would be as easy as 'game.scene.name' or something like that. But the scenes do not seem to contain their own name. I already tried extending the Scene class and implementing my own staticInit func, but getting the name even from there seems virtually impossible. Also I tried creating my own createScene function and passing the name to the scene that is created but also on that level I can't seem to figure out how to pass the name variable to the eventual scene. Any ideas? Edit: Ofcourse I could track the name by using a helper function that switches the scenes and storing the name globally, but this seems more like a workaround then a actual solution for such a simple variable. Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.