Jump to content
This forum will be closing down. Please move to the respective dedicated project forums.

game.system.setScene(game.system.currentSceneName);


Ninjadoodle
 Share

Recommended Posts

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!

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...