Skip to main content

CCMotionStreak

CCMotionStreak

Cocos2D

Inheritance: System.Object → Cocos2D.CCNode

Implements: Cocos2D.ICCSelectorProtocol, Cocos2D.ICCFocusable, Cocos2D.ICCTargetedTouchDelegate, Cocos2D.ICCStandardTouchDelegate, Cocos2D.ICCTouchDelegate, Cocos2D.ICCKeypadDelegate, Cocos2D.ICCKeyboardDelegate, Cocos2D.ICCRGBAProtocol, System.Collections.Generic.IComparer{Cocos2D.CCNode}, Cocos2D.ICCTextureProtocol, Cocos2D.ICCBlendProtocol

Constructors​

CCMotionStreak()

CCMotionStreak()()

CCMotionStreak(float, float, float, CCColor3B, CCTexture2D)

CCMotionStreak(float, float, float, CCColor3B, CCTexture2D)(System.Single fadeTime, System.Single minSegLength, System.Single streakWidth, Cocos2D.CCColor3B color, Cocos2D.CCTexture2D texture)
Parameters:
fadeTime (System.Single)
minSegLength (System.Single)
streakWidth (System.Single)
color (Cocos2D.CCColor3B)
texture (Cocos2D.CCTexture2D)

CCMotionStreak(float, float, float, CCColor3B, string)

CCMotionStreak(float, float, float, CCColor3B, string)(System.Single fadeTime, System.Single minSegLength, System.Single streakWidth, Cocos2D.CCColor3B color, System.String pathToTexture)
Parameters:
fadeTime (System.Single)
minSegLength (System.Single)
streakWidth (System.Single)
color (Cocos2D.CCColor3B)
pathToTexture (System.String)

Fields​

m_bFastMode(System.Boolean)
m_bStartingPositionInitialized(System.Boolean)

Properties​

BlendFunc(Cocos2D.CCBlendFunc)
FastMode(System.Boolean)
IsOpacityModifyRGB(System.Boolean)
Opacity(System.Byte)
Position(Cocos2D.CCPoint)
StartingPositionInitialized(System.Boolean)
Texture(Cocos2D.CCTexture2D)

Methods​

Draw()

Draw()()
Example

InitWithFade(float, float, float, CCColor3B, CCTexture2D)

System.Boolean InitWithFade(float, float, float, CCColor3B, CCTexture2D)(System.Single fade, System.Single minSeg, System.Single stroke, Cocos2D.CCColor3B color, Cocos2D.CCTexture2D texture)
Parameters:
fade (System.Single)
minSeg (System.Single)
stroke (System.Single)
color (Cocos2D.CCColor3B)
texture (Cocos2D.CCTexture2D)
Returns:
System.Boolean

InitWithFade(float, float, float, CCColor3B, string)

System.Boolean InitWithFade(float, float, float, CCColor3B, string)(System.Single fade, System.Single minSeg, System.Single stroke, Cocos2D.CCColor3B color, System.String path)
Parameters:
fade (System.Single)
minSeg (System.Single)
stroke (System.Single)
color (Cocos2D.CCColor3B)
path (System.String)
Returns:
System.Boolean

TintWithColor(CCColor3B)

TintWithColor(CCColor3B)(Cocos2D.CCColor3B colors)
Parameters:
colors (Cocos2D.CCColor3B)

Update(float)

Update(float)(System.Single delta)
Parameters:
delta (System.Single)
Example