CCAction is not an object displayed on the screen. CCAction must be attached to a CCNode instance to play its role. The CCAction class inheritance relationship is shown in figure
CCAction has three subclasses: CCFiniteTimeAction, CCFollow, and CCSpeed)
I. CCFiniteTimeAction
1: CCActionInStant: The action that calls the result directly without any animation effect.
2: CCActionInterval (delayed action): The animation process is formed.
Example: ActionTest for the test project
Ii. CCFollow
The following action is the action that one node follows another node.
Iii. CCSpeed
CCSpeed is not an independent action, but a package of the current action. After packaging, this action can achieve slow and fast forward effects.
1 indicates the source speed, acceleration greater than 1, and deceleration less than 1
Iv. Action Delay
The CCDelayTime action is delayed for a fixed period of time, with only time and no action.
The code in the figure above indicates that the move action is executed first, and the move action is executed two seconds later.