1 decade ago by SnakePlissken
So I am getting a very interesting error in the level editor. When trying to edit a level i get this
Uncaught TypeError: Object [object Object] has no method 'spawnEntity'
However when I load my game I get no error and everything runs just fine?
So far I just comment this section of code when I want to edit and it works however I would like to know what is causing this?
Thanks,
Snake
ig.game.spawnEntity(EntityHealthBar,this.pos.x , this.pos.y,{ Unit: this });
Uncaught TypeError: Object [object Object] has no method 'spawnEntity'
However when I load my game I get no error and everything runs just fine?
So far I just comment this section of code when I want to edit and it works however I would like to know what is causing this?
Thanks,
Snake