Skip to main content

CCLightningStreak

CCLightningStreak

Cocos2D

Inheritance: System.Object → Cocos2D.CCNode → Cocos2D.CCMotionStreak

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

CCLightningStreak()

CCLightningStreak()()

CCLightningStreak(CCPoint, CCPoint, float, float, float, CCColor3B, CCTexture2D)

CCLightningStreak(CCPoint, CCPoint, float, float, float, CCColor3B, CCTexture2D)(Cocos2D.CCPoint start, Cocos2D.CCPoint end, System.Single fadeTime, System.Single minSegLength, System.Single streakWidth, Cocos2D.CCColor3B color, Cocos2D.CCTexture2D texture)
Parameters:
start (Cocos2D.CCPoint)
end (Cocos2D.CCPoint)
fadeTime (System.Single)
minSegLength (System.Single)
streakWidth (System.Single)
color (Cocos2D.CCColor3B)
texture (Cocos2D.CCTexture2D)

CCLightningStreak(CCPoint, CCPoint, float, float, float, CCColor3B, string)

CCLightningStreak(CCPoint, CCPoint, float, float, float, CCColor3B, string)(Cocos2D.CCPoint start, Cocos2D.CCPoint end, System.Single fadeTime, System.Single minSegLength, System.Single streakWidth, Cocos2D.CCColor3B color, System.String pathToTexture)
Parameters:
start (Cocos2D.CCPoint)
end (Cocos2D.CCPoint)
fadeTime (System.Single)
minSegLength (System.Single)
streakWidth (System.Single)
color (Cocos2D.CCColor3B)
pathToTexture (System.String)

CCLightningStreak(CCPoint, CCPoint, float, float, float, float, CCColor3B, CCTexture2D)

CCLightningStreak(CCPoint, CCPoint, float, float, float, float, CCColor3B, CCTexture2D)(Cocos2D.CCPoint start, Cocos2D.CCPoint end, System.Single sway, System.Single fadeTime, System.Single minSegLength, System.Single streakWidth, Cocos2D.CCColor3B color, Cocos2D.CCTexture2D texture)
Parameters:
start (Cocos2D.CCPoint)
end (Cocos2D.CCPoint)
sway (System.Single)
fadeTime (System.Single)
minSegLength (System.Single)
streakWidth (System.Single)
color (Cocos2D.CCColor3B)
texture (Cocos2D.CCTexture2D)

CCLightningStreak(CCPoint, CCPoint, float, float, float, float, CCColor3B, string)

CCLightningStreak(CCPoint, CCPoint, float, float, float, float, CCColor3B, string)(Cocos2D.CCPoint start, Cocos2D.CCPoint end, System.Single sway, System.Single fadeTime, System.Single minSegLength, System.Single streakWidth, Cocos2D.CCColor3B color, System.String pathToTexture)
Parameters:
start (Cocos2D.CCPoint)
end (Cocos2D.CCPoint)
sway (System.Single)
fadeTime (System.Single)
minSegLength (System.Single)
streakWidth (System.Single)
color (Cocos2D.CCColor3B)
pathToTexture (System.String)

Properties

Cyclical(System.Boolean)

Set to true if you want to re-start the strike when the 'time' has reached 1. The default is false, which will stop the strike and fade out the segments.

Duration(System.Single)

Methods

Update(float)

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