1 decade ago by matt
Hi,
Is there a callback for loadLevel()? If I call loadLevel and then on the next line do:
to get a reference to a Entity in the level I've just tried to load, I get undefined. Is there a callback or some way I can use to know when the level is ready to get references to entities from?
Thanks
Is there a callback for loadLevel()? If I call loadLevel and then on the next line do:
ig.game.getEntitiesByType(EntityPlayer)[0];
to get a reference to a Entity in the level I've just tried to load, I get undefined. Is there a callback or some way I can use to know when the level is ready to get references to entities from?
Thanks