Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

1 decade ago by TrexKikBut

How do you get the name of the current level?

1 decade ago by Joncom

Here is one way you can store the name of the current level.

// Set the current level as a var.
ig.game.currentLevel = "MyTestLevel";

// Load the current level.
ig.game.loadLevel( ig.global[ "Level" + ig.game.currentLevel ] );

Then to get the current level, simply use ig.game.currentLevel.
Page 1 of 1
« first « previous next › last »