Custom Scenes and Gesture Recognizers

A common way to tell the backstory of a game to players is with a cutscene—a pause in the gameplay to prepare players for the next task. Some games use videos or very complex productions to get the point across. For our streamlined game, we’re going to use a separate SKScene with scrolling text to tell players why their ship is traveling at breakneck speeds through space. Here’s the effect we’re going for. You might recognize it from an obscure 1970s sci-fi movie.

images/Menus/textcrawl.png
Figure 22. The opening Star Wars--style text crawl

To implement this, you’ll need to learn a lot more about how SKScene objects work and how to ...

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.