Hi,
I have added some sprites in my game play using chipmunk physics, and my player fires missiles to kill enemies. But some of sprites are not enemies. How can I ignore them?
thank
cocosboy
A fast, easy to use, free, and community supported 2D game engine
Hi,
I have added some sprites in my game play using chipmunk physics, and my player fires missiles to kill enemies. But some of sprites are not enemies. How can I ignore them?
thank
cocosboy
there is an integer "layers" member in Shape objects of chipmunk, use binary logic to define layers your shapes will collide. For example, put enemies into layer 1 sprites to 2, other stuff to 4 and use layer 1 for your missiles.
thanks that was helpfull
You must log in to post.