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 inihility

I'm trying to reference an entity I spawned's function to check its state. The problem I'm having is that it was spawned in another class and I can't seem to figure out how to go about doing it.

1 decade ago by lTyl

When you spawn an entity, pass a &039;name' key:value pair in the settings object. Then use #ig.game.getEntityByName(entityName);

http://impactjs.com/documentation/class-reference/game#getentitybyname
Page 1 of 1
« first « previous next › last »