O'Reilly logo

Getting Started with SpriteKit by Jorge Jordán

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Summary

In this chapter, you learned some advanced techniques that will help you give a professional and complex look to your games.

We started by learning how to create nodes that are composed of several sprites and actions by creating classes that inherit SKNode. In this way, we created a new class for the enemies in the game that consist of two SKSpriteNode instances, two SKAction instances, and the type of enemy.

In addition to this, we learned how we can perform actions on each of the sprites separately so that the element behaves as we want.

Furthermore, I showed you how to apply the parallax effect to our games in order to provide them with depth and a sense of motion. For this purpose, we learned how to take advantage of the update method ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required