in SpriteKit
for detect which SKSpriteNode
is touched there is property .name
SKSpriteNode *toGame = [SKSpriteNode spriteNodeWithImageNamed:@"game"];
toGame.name = @"toGame";
...
SKSpriteNode *toOptions = [SKSpriteNode spriteNodeWithImageNamed:@"options"];
toOptions.name = @"toOptions";
...
after in touchesBegan
-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
UITouch *touch = [touches anyObject];
CGPoint location = [touch locationInNode:self];
SKNode *node = [self nodeAtPoint:location];
if ([node.name isEqualToString:@"toGame"]) {
//go to game scene
}
if ([node.name isEqualToString:@"toOptions"]) {
// go to options scene
}