10 years ago by Roubjon
Hey guys,
Is there a way to figure out the name of the current level that is loaded? What I mean by that, is if I call
When I declare the loadLevel funcion as :
Is there a way to retrieve the name "LevelA3" from ig.game.currentLevel?
When I use
Is there a way to figure out the name of the current level that is loaded? What I mean by that, is if I call
loadLevel(LevelA3);
When I declare the loadLevel funcion as :
loadLevel: function(data) { this.currentLevel = data; this.parent(data); }
Is there a way to retrieve the name "LevelA3" from ig.game.currentLevel?
When I use
console.log(this.currentLevel)
I get the contents of the javascript file, but not the title itself.