CCActionAnimate Class Reference

Inherits from CCActionInterval : CCActionFiniteTime : CCAction : NSObject
Conforms to NSCopying
Declared in CCActionInterval.h

Overview

Animates a sprite given the name of an Animation.

Note: This action can only be run on CCSprite nodes.

Creating a Animation Action

+ actionWithAnimation:

Creates the action with an Animation. Will restore the original frame when the animation is over

+ (instancetype)actionWithAnimation:(CCAnimation *)animation

Parameters

animation

Animation to run

Return Value

New animation action

See Also

Declared In

CCActionInterval.h

– initWithAnimation:

Initializes the action with an Animation. Will restore the original frame when the animation is over

- (id)initWithAnimation:(CCAnimation *)animation

Parameters

animation

Animation to run

Return Value

New animation action

See Also

Declared In

CCActionInterval.h