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

8 years ago by ijed

Is it possible to checkAgainst both A and B types? If so, how?

I have a player that throws a boomerang which has to damage enemies on both its outward and return journey, but also remove itself when reaching the player (so they can throw it again).

All that works fine, but I can't make it detect collision with both the enemies and the player - only one, or the other.

Do I need to put everything in one group and then do

if ( other instanceOf whatever )

for every single entity? This seems like a very bloated way of doing it...

8 years ago by ijed

Ok, solved!

TYPE.BOTH
Page 1 of 1
« first « previous next › last »