Kobold2D  1.1
Kobold2D API Reference (iOS version) for Kobold2D developers
CCAnimation(KoboldExtensions) Interface Reference

#include <CCAnimationExtensions.h>

List of all members.

Static Public Member Functions

id animationWithName:format:numFrames:firstIndex:delay: (NSString *name,[format] NSString *format,[numFrames] int numFrames,[firstIndex] int firstIndex,[delay] float delay)
CCAnimation * animationWithFiles:frameCount:delay: (NSString *name,[frameCount] int frameCount,[delay] float delay)
CCAnimation * animationWithFrames:frameCount:delay: (NSString *frame,[frameCount] int frameCount,[delay] float delay)

Detailed Description

extends CCAnimation


Member Function Documentation

CCAnimation* CCAnimation(KoboldExtensions)::animationWithFiles:frameCount:delay: ( NSString *  name,
[frameCount] int  frameCount,
[delay] float  delay 
) [static, virtual]

Creates a CCAnimation from individual files. The name is the base name of the files which must be suffixed with consecutive numbers. For example: ship0.png, ship1.png, ship2.png ... (name:"ship" frameCount:3)

CCAnimation* CCAnimation(KoboldExtensions)::animationWithFrames:frameCount:delay: ( NSString *  frame,
[frameCount] int  frameCount,
[delay] float  delay 
) [static, virtual]

Creates a CCAnimation from individual sprite frames. Assumes the sprite frames have already been loaded. The name is the base name of the files which must be suffixed with consecutive numbers. For example: ship0.png, ship1.png, ship2.png ... (name:"ship" frameCount:3)

id CCAnimation(KoboldExtensions)::animationWithName:format:numFrames:firstIndex:delay: ( NSString *  name,
[format] NSString *  format,
[numFrames] int  numFrames,
[firstIndex] int  firstIndex,
[delay] float  delay 
) [static, virtual]

Creates a CCAnimation with name, a format string for the consecutively numbered files (eg "frames_i.png"), the number of frames, the first index (from where to count numFrames), and delay between frames.


The documentation for this interface was generated from the following file: