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

Overview

Animates a sprite given the name of an Animation

Tasks

Other Methods

  •   animation

    animation used for the image

    property
  • + actionWithAnimation:

    creates the action with an Animation and will restore the original frame when the animation is over

  • – initWithAnimation:

    initializes the action with an Animation and will restore the original frame when the animation is over

Other Methods

Properties

animation

animation used for the image

@property (readwrite, nonatomic, retain) CCAnimation *animation

Declared In

CCActionInterval.h

Class Methods

actionWithAnimation:

creates the action with an Animation and will restore the original frame when the animation is over

+ (id)actionWithAnimation:(CCAnimation *)animation

Declared In

CCActionInterval.h

actionWithAnimation:restoreOriginalFrame:

creates the action with an Animation

+ (id)actionWithAnimation:(CCAnimation *)a restoreOriginalFrame:(BOOL)b

Declared In

CCIntervalAction.h

actionWithDuration:animation:restoreOriginalFrame:

creates an action with a duration, animation and depending of the restoreOriginalFrame, it will restore the original frame or not. The ‘delay’ parameter of the animation will be overrided by the duration parameter.

+ (id)actionWithDuration:(ccTime)duration animation:(CCAnimation *)animation restoreOriginalFrame:(BOOL)b

Availability

Declared In

CCIntervalAction.h

Instance Methods

initWithAnimation:

initializes the action with an Animation and will restore the original frame when the animation is over

- (id)initWithAnimation:(CCAnimation *)animation

Declared In

CCActionInterval.h

initWithAnimation:restoreOriginalFrame:

initializes the action with an Animation

- (id)initWithAnimation:(CCAnimation *)a restoreOriginalFrame:(BOOL)b

Declared In

CCIntervalAction.h

initWithDuration:animation:restoreOriginalFrame:

initializes an action with a duration, animation and depending of the restoreOriginalFrame, it will restore the original frame or not. The ‘delay’ parameter of the animation will be overrided by the duration parameter.

- (id)initWithDuration:(ccTime)duration animation:(CCAnimation *)animation restoreOriginalFrame:(BOOL)b

Availability

Declared In

CCIntervalAction.h