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 matt

Hi,

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

1 decade ago by matt

I decided to use the init() method of an entity in the level, that works fine.
Page 1 of 1
« first « previous next › last »