I need help trying to understand how use maskBits for collision filtering.
I want to have lots of "zombies" in the playfield which collide with only one "ball" object (zombies should not collide with each other), I also have only one "sword" object that collides with both balls and zombies.
I don't know hot to use maskBits to allow the sword to collide with both Ball and Zombies and I tried lots of different things, please help.
Also how can activate/deactive the collision filtering for the swords and zombies only?. Thanks in advance.
I want to have lots of "zombies" in the playfield which collide with only one "ball" object (zombies should not collide with each other), I also have only one "sword" object that collides with both balls and zombies.
I don't know hot to use maskBits to allow the sword to collide with both Ball and Zombies and I tried lots of different things, please help.
Also how can activate/deactive the collision filtering for the swords and zombies only?. Thanks in advance.