Learn iOS with Examples, Code Snippets and Video Tutorials

Create a Children’s Book App with Swift 2 – Touch Events

Create a Children’s Book App with Swift 2 – Touch Events

In this Swift 2 video tutorial we discuss setting up a TouchEvents dictionary for our Element class to do specific events when the user touches the Element. This will involve detecting which node in the scene was touched, so we’ll go through every SKSpriteNode, check if they are of the Element class, then if they have a touch event defined, and if so, pick out which Element was the highest visually (using their zPosition). To find out more about the Story Tellers iOS Starter Kit 2.

Check out our premium Swift and Sprite Kit Tutorial content!

Visit CartoonSmart.com