Chapter 2Actions: Go, Sprite, Go!

We’ve got the rudiments of Sprite Kit behind us. We know about nodes and the scene graph, how to display images with sprite nodes, and how to move the ship around on the screen in response to touch events.

Now we’re ready for some action with obstacles, enemies, and a weapon with a power-up to defend ourselves. We’re going to achieve these things with Sprite Kit actions, a powerful way to give behaviors to nodes that control what they do during the course of the game. By the end of this chapter, you’ll understand the powerful building blocks for all kinds of complex behaviors.

Ready? Let’s go!

Get Build iOS Games with Sprite Kit now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.