Tag Info

New answers tagged

0

In your scene controller, you should do this inside -(void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event: UITouch *touch = [touches anyObject]; CGPoint touchPos = [touch locationInNode:self]; touchPos will have the position inside your scene, and you can do: if ([self.cardOne containsPoint:touchPos]){ //Do something CGPoint ...



Top 50 recent answers are included