Book Image

Cocos2d Game Development Blueprints

By : Jorge Jordán
Book Image

Cocos2d Game Development Blueprints

By: Jorge Jordán

Overview of this book

Table of Contents (15 chapters)
Cocos2d Game Development Blueprints
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

CCActions in depth


In the previous chapters, you learned how to create movement actions and sequences. But you may know that there are more types of actions, and we're going to see them in this section.

Actions are used to modify a node's properties such as its position, size, and rotation, or simulate some dynamic effects; that's why we can find in the order of tens of different actions.

We can categorize actions in three main groups depending on the kind of modification they apply to the node. In this way, we find:

  • Interval actions: This is the type of action that the actions we've been using in the previous chapters belong to. They get this name since you must specify the duration of the action.

  • Instant actions: These actions allow you to modify some node properties such as visibility or position, with the exception that this way you can perform these modifications in a sequence.

  • Ease actions: These actions apply a dynamic effect to the node and are widely used on transitions. All these...