In learning SpriteKit, I am trying to make a small adventure game. I am creating a hero, and adding it to the scene, and then later, during touchesBegan:, I det
touchesBegan:
I usually check the touched node's parent until i find the class i want to control. Here's a code snippet.
while (touchedNode.parent) { if ([touchedNode isKindOfClass:[GameObject class]]) break; else touchedNode = (SKSpriteNode*)self.touchedNode.parent; }