Introduction to Sprite Kit with Swift 3 - Part 8 - How to write Custom SKSpriteNode Classes

4,105 views · Published 18 January 2017 · 18:25 · Indexed 4 November 2026

Channel: cartoonsmart · 2017 · Education

Watch on YouTube

In this final video, we'll use the update method to check where the player is and then change the zPosition (layering) of buildings based on that value. This will make it look like the player is visually in front of or in back of a particular building. Then finally we'll create a Castle class, or subclass of SKSpriteNode, and demonstrate how this custom class can have it's own functions and properties.

Source projects and assets are available to subscribers at CartoonSmart.com

More from this channel