As title says. How to run SKAction only on parent only (children not affected by it)?
I have some SKSpriteNodes with children, but I would like to manually control which actions are run on each children and that actions are not inherited from parent
Actions are not inherited from the parent, really, but the effects of property changes are. So you have 2 choices:
1. When you add an action to the parent, add an inverse of the action to the children. That is, if you move the parent 10 to the left, move the children 10 to the right.
2. Rethink your design. If the children don't reflect changes to parent properties, they probably shouldn't be children.
If you have other reasons for associating these "children" with this "parent", then I suggest you create a plain SKNode, and make the children subnodes of that. Then create another plain SKNode, and make the parent and first SKNode children of that. With that structure, you can chose which parts of the hierarchy you want actions to affect.