Anyone know how to work the collision? like when i sprite hits another sprite?
Thanks
Collision?
(2 posts) (2 voices)-
Posted 1 year ago #
-
cocos2d doesn't come with a collision system, you have to roll your own. Collision detection can be very game specific. Some people get away with simply comparing bounding rectangles of sprites, others go as far as implementing a physics system such as Chipmunk or Box2d for collision detection. It really depends on your collision requirements.
Ray Wenderlich has a couple of very good articles on his web site that cover collision detection http://www.raywenderlich.com/
Posted 1 year ago #
Reply
You must log in to post.