9 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
for every single entity? This seems like a very bloated way of doing it...
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...