On Wed, Jun 23, 2010 at 10:11 PM, karanveer singh
<[email protected]>wrote:

> Is there a collision manager for collisions between tiles and sprites.
> For example, if I want to find if there is a sprite above, below, to
> the left or to the right of a particular tile?
>
> Right now I just find out the cell using the coordinates of the sprite
> and use the tile's properties to find out if it is my required tile.
> Is there a more sophisticated way to do this?
>

Have a look at tiles.RectMapCollider. Implement your own actions in the
collide_* methods and then invoke do_collision as described in the
docstring.


     Richard

-- 
You received this message because you are subscribed to the Google Groups 
"cocos2d discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/cocos-discuss?hl=en.

Reply via email to