Inherits from CCNodeRGBA : CCNode : NSObject
Conforms to CCTextureProtocol
Declared in CCMotionStreak.h

Overview

MotionStreak. Creates a trailing path.

Tasks

Other Methods

Other Methods

Properties

blendFunc

blending function

@property (nonatomic, readwrite, assign) ccBlendFunc blendFunc

Declared In

CCMotionStreak.h

fastMode

When fast mode is enabled, new points are added faster but with lower precision

@property (nonatomic, readwrite, assign, getter=isFastMode) BOOL fastMode

Declared In

CCMotionStreak.h

ribbon

Ribbon used by MotionStreak (weak reference)

@property (nonatomic, readonly) CCRibbon *ribbon

Declared In

CCMotionStreak.h

texture

texture used for the motion streak

@property (nonatomic, retain) CCTexture2D *texture

Declared In

CCMotionStreak.h

Class Methods

streakWithFade:minSeg:image:width:length:color:

creates the a MotionStreak. The image will be loaded using the TextureMgr.

+ (id)streakWithFade:(float)fade minSeg:(float)seg image:(NSString *)path width:(float)width length:(float)length color:(ccColor4B)color

Declared In

CCMotionStreak.h

streakWithFade:minSeg:width:color:texture:

creates and initializes a motion streak with fade in seconds, minimum segments, stroke’s width, color, texture

+ (id)streakWithFade:(float)fade minSeg:(float)minSeg width:(float)stroke color:(ccColor3B)color texture:(CCTexture2D *)texture

Declared In

CCMotionStreak.h

streakWithFade:minSeg:width:color:textureFilename:

creates and initializes a motion streak with fade in seconds, minimum segments, stroke’s width, color, texture filename

+ (id)streakWithFade:(float)fade minSeg:(float)minSeg width:(float)stroke color:(ccColor3B)color textureFilename:(NSString *)path

Declared In

CCMotionStreak.h

Instance Methods

initWithFade:minSeg:image:width:length:color:

initializes a MotionStreak. The file will be loaded using the TextureMgr.

- (id)initWithFade:(float)fade minSeg:(float)seg image:(NSString *)path width:(float)width length:(float)length color:(ccColor4B)color

Declared In

CCMotionStreak.h

initWithFade:minSeg:width:color:texture:

initializes a motion streak with fade in seconds, minimum segments, stroke’s width, color and texture

- (id)initWithFade:(float)fade minSeg:(float)minSeg width:(float)stroke color:(ccColor3B)color texture:(CCTexture2D *)texture

Declared In

CCMotionStreak.h

initWithFade:minSeg:width:color:textureFilename:

initializes a motion streak with fade in seconds, minimum segments, stroke’s width, color and texture filename

- (id)initWithFade:(float)fade minSeg:(float)minSeg width:(float)stroke color:(ccColor3B)color textureFilename:(NSString *)path

Declared In

CCMotionStreak.h

reset

Remove all living segments of the ribbon

- (void)reset

Declared In

CCMotionStreak.h

tintWithColor:

color used for the tint

- (void)tintWithColor:(ccColor3B)colors

Declared In

CCMotionStreak.h

update:

polling function

- (void)update:(ccTime)delta

Declared In

CCMotionStreak.h