How can I get the exact position of a sprite at the time a mousejoint moving it is released (even though the sprite might still be moving). I believe it should be coded in the ccTouchesEnded method, but I am not sure how to do it. Thanks for your help.
Asked
Active
Viewed 64 times
1 Answers
0
If what you want to know is where the sprite is when you release a tap then do this:
-(void)ccTouchesEnded:(NSSet *)touches withEvent:(UIEvent *)event
{
CGPoint pos = sprite.position;
}

m1sk
- 308
- 2
- 10
-
please take a look at this follow up [post](http://stackoverflow.com/questions/11883147/cclog-not-displaying) – newbie Aug 09 '12 at 12:35