Nodes can be added inside of other nodes using the Parent property. This gives you an even easier way of keeping one node locked in with another than using the StickNodesToNode dictionary.
In the Scene editor, simply choose a Parent.
This works well for most nodes, but currently TouchEvents in Elements have issues when placed inside another node.
You can also watch a video tutorial on parenting here.
If you stumbled onto this article, it is part of our documentation for the Story Tellers iOS Starter Kit 2. The kit enables you to make children’s book apps and games without writing any code! But it is Swift 2 based and compatible with iOS9 (or higher) and Xcode 7 (or higher), so kit buyers can even extend the functionality to fit their needs further. Some of what we cover in the kit documentation may apply to Xcode in general, so this article could be worth a read even if you aren’t a user. You can purchase Lifetime Updates the kit here, or subscribe Yearly to CartoonSmart and get the latest version, plus access to all of our other kits / tutorials.
We’ve also created an iBook to document the very latest properties in the kit, so be sure to download that as well.