moving cpSprite tile by tile.
how can I stop a cpSprite object from moving.
note that the object is moving by calling this:
player.position = ccpAdd(player.position, ccp(0, 1));
Thank you
Found a solution, here it is:
I give my player a booleen var BOOL isMoving.
so isMoving = YES to enable the move by the button.
when it collide with the rect I want the player to stop. so isMoving = NO. and the button should not be able to move the player any more.
my be could help someone, thank you everybody.
Last edited by Toscano; 08-30-2011 at 01:33 AM.
Reason: Found some solutions
|