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 fulvio

Is there a way to return a count of how many entities have been placed into a level?

I thought of using something like the following:

ig.game.getEntitiesByType(EntityTestTube).count

Wasn't sure whether the count is exposed.

1 decade ago by Heiko

Have you tried .length

1 decade ago by fulvio

1 decade ago by fulvio

Quote from Heiko
Have you tried .length


Works a treat, thank you.
Page 1 of 1
« first « previous next › last »