Actually while moving the sprite to the objects location, I am doing this way. ` //Moving sprite id actionBy = [MoveTo actionWithDuration:0.5f position: objectPos]; [_bulletSprite runAction: actionBy]; //Moving body _bulletBody->p = bulletPos; _bulletBody->v = cpv(0,0);
I guess here is the catch, moving the body. Now what happens is that Body is moving faster than the Sprite because of which I could see CollisionDetect callback is called in which I am hiding the Object and the Sprite actually moves bit later. Now can anyone tell me, how can I move Sprite & Body together with same duration. Regards Mustafa --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
