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 ...
Get Learn SpriteBuilder for iOS Game Development 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.