I am struggling to detect a touch of the nodes while testing on the 8.0 simulators.
7.1 simulators work fine and detecting touches. But on simulator 8.0 , only the parent node is detected.
On the scene, there is a container node (SKNode) which containing four "layers". Every layer is another SKNode with different zPosition and contains a few SKSpritekitNode-s...As I sad, touch detection works fine on 7.1 simulators, but on the 8.0 simulator everytime a touched node is container(root) node. What could be the problem?
Orientation is landscape...
The code is really simple, just for testing purposes(in touchesBegan):
7.1 simulators work fine and detecting touches. But on simulator 8.0 , only the parent node is detected.
On the scene, there is a container node (SKNode) which containing four "layers". Every layer is another SKNode with different zPosition and contains a few SKSpritekitNode-s...As I sad, touch detection works fine on 7.1 simulators, but on the 8.0 simulator everytime a touched node is container(root) node. What could be the problem?
Orientation is landscape...
The code is really simple, just for testing purposes(in touchesBegan):
Code:
for (UITouch *touch in touches) {
CGPoint location = [touch locationInNode:self];
SKSpriteNode *touchedNode = (SKSpriteNode *)[self nodeAtPoint:location];
NSLog(@"Touched node name is %@",touchedNode.name);
}