Thread: Iphone Gaming
-
03-16-2009, 09:03 AM #1
Iphone Gaming
HI,
I am trying to write a game for apple iphone but am not able to trace a touch at a particular sprite coz when i am using
- (BOOL)ccTouchesEnded
NSSet *)touches withEvent
UIEvent *)event
{
UITouch *touch = [touches anyObject];
.
.
.}
This function detects the touch for evry object but i want to detect the touch for only a single object.
Hu to do that with this method ?
Please help me out.
-
03-16-2009, 12:40 PM #2
my suggestion is to get touch location and then check if it's inside specific object.



LinkBack URL
About LinkBacks
Reply With Quote