1 decade ago by matthewjames
Hello all, first post here!
I made a Transport Entity that worked in using the code below. ##ig.game.loadLevel(LevelInterior1);##
I quickly realized I need a better way of passing which level to go back to, so I decided to pass the variable through a key in weltmeister.
Example Key:
New code: ###check: function ( ) { ig.game.loadLevel(this.level); }###
When I try to go through a Transport I get the following errors:
Thank you all for your help!
Matthew
I made a Transport Entity that worked in using the code below. ##ig.game.loadLevel(LevelInterior1);##
I quickly realized I need a better way of passing which level to go back to, so I decided to pass the variable through a key in weltmeister.
Example Key:
level: LevelInterior1
New code: ###check: function ( ) { ig.game.loadLevel(this.level); }###
When I try to go through a Transport I get the following errors:
game.entities.player is already defined
- Idk why this happens.TypeError: Cannot read property 'length' of undefined
Thank you all for your help!
Matthew