Ninjadoodle Posted March 5, 2015 Share Posted March 5, 2015 Hi guys To reset a level, I would normally just type in it's name manually, but I was wondering whether this should work ... game.system.setScene(game.system.currentSceneName); I've tested it and nothing happens. if I do console.log(game.system.currentSceneName); I get undefined Thank you for any suggestions! Quote Link to comment Share on other sites More sharing options...
enpu Posted March 5, 2015 Share Posted March 5, 2015 What engine version are you using? Quote Link to comment Share on other sites More sharing options...
Ninjadoodle Posted March 5, 2015 Author Share Posted March 5, 2015 Hi @enpu I'm testing with the latest develop version. Quote Link to comment Share on other sites More sharing options...
enpu Posted March 5, 2015 Share Posted March 5, 2015 it's changed into game.system.sceneName Quote Link to comment Share on other sites More sharing options...
Ninjadoodle Posted March 5, 2015 Author Share Posted March 5, 2015 Hi @enpu Awesome, thank you! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.