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

The parallax effect

When developing two-dimensional games, you will come across a problem that traditional animators have been facing since the development of the cartoon, which is the difficulty of providing their creations with depth and the sensation of motion.

The technique used by animators to solve this problem is the one known as parallax effect, which involves the separation of scenes onto different layers and moving the background ones slower than the layers in the foreground.

This is something that is similar to what happens when you are traveling in an automobile. If you look at one side, you will see trees on the edge of the road passing by swiftly. If you then look a little further at a static object, you will see that it moves slower ...

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