Information about a certain particle type that is shared between effects.
Particle | Information about a certain particle type that is shared between effects. |
Member Functions | |
SetColor | |
SetColoring1 | |
SetColoring2 | |
GetMotionController | |
SetBlendMode |
nil SetColor(Color color)
Sets the initial color of the particle.
particle:SetColor(Color(255,110,60,255));
nil SetColoring1(Color color1, number startTimePercent)
Particle will fade to this color.
color1 | A Color object holding the color we want to change to interpolate to. |
startTimePercent | At what point the change should start to happen, 0 to 1. |
nil SetColoring2(Color color1, Color color2, number startTimePercent)
Like Particle::SetColoring1 except it allows you to fade to three colors total.
color1 | A Color object holding the color we want to change to interpolate to. |
color2 | The second Color object holding the color we want to change to interpolate to. |
startTimePercent | At what point the change should start to happen, 0 to 1. |
MotionController GetMotionController()
The MotionController associated with this particle template. (created if one doesn’t exist)
nil SetBlendMode(number blendConstant)
Only normal and additive modes are currently supported.
blendConstant | Must be one of the C_BLEND_MODE_CONSTANTS. |