O'Reilly logo

Learn SpriteBuilder for iOS Game Development by Steffen Itterheim

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

Chapter    12

Visual Effects and Animations

In this chapter, you’ll learn how to create sprite frame animations, how to design particle effects, and how to apply shader effects via the Effect node, which is essentially a sprite’s effects list.

Sprite Frame Animations

A common way to animate sprites is by cycling through a series of images. This is called a sprite frame animation. In essence, it’s the same as changing a sprite’s texture every so often.

The term sprite frame refers to an extra class, CCSpriteFrame, provided by Cocos2D, which has a reference to the texture plus extra information to address the sprite as an area within the texture. Often, the texture is in fact a Sprite Sheet texture, and the CCSpriteFrame class contains information ...

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