OmegaParticleEngine
Properties
EngineList Hold all of our particle engines.
Name The component's name.
OmegaSprite The OmegaSprite that will supply the sprites to the particle engine.
Tag This one is free for your own use and does nothing.
Some methods
Init Call before initialize the component.
UpdateSpeed: Single Gives all the engines in EngineList the same UpdateSpeed (see below).
Song properties
ChangeAll If it's set to true and you change any of the settings in "Particle" or "Sprite" all the particles will be changed. If it's set to false only the particles created after a change is made will receive the changes made.
Name Name of the particle engine.
NumOfParticles The number of particles that the engine will have.
Some methods
Count: Integer returns the number of particles.
Clear Clears all the particles. Should be called before clearing all the sprites from OmegaSprite.
UseCustomParticle(Particle: TParticleClass) If you've made your own TParticle call this to use it.
SaveToFile(const FileName: TFileName) Save the properties of the engine in an Ini file.
LoadFromFile(const FileName: TFileName) Loads the properties of the engine from an Ini file. If one or more property is not found it will get its default value.
Particle
Animate If true the particles will be animated. The animation sequence will be played only once during the lifetime of the particle. The particle will start with an ImageIndex equal to Particle.AnimateIndex and it will end with one at Particle.AnimateIndex + Particle.AnimateCount.
AnimateCount The number of images in the animate sequence.
AnimateIndex The start number of the particles ImageIndex.
Decay The bigger the value, the faster the lifetime of the particle will end.
LifeTime The time before the particle dies.
Loop If true the sprite will be brought back to life again when it dies using the Reset() method.
RandomLocation If true whenever a particle is created it will already have traveled a bit.
UpdateSpeed The speed at which the particles will travel. Mostly used for time-based movement. Make sure it's not 0, otherwise the particles will not move.
X Starting x pos of the particles.
Xacc The particles acceleration along the x-axis.
Xvel The particles velocity along the x-axis.
Y Starting y pos of the particles.
Yacc The particles acceleration along the y-axis.
Yvel The particles velocity along the y-axis.
Z Starting Z pos (same as the sprites z pos) of the particles.
Sprite
Alpha Same as TSprite.Alpha.
AnimCount Same as TSprite.AnimCount.
AnimSpeed Same as TSprite.AnimSpeed.
Blue Same as TSprite.Blue.
DoAlphaBlend Same as TSprite.DoAlphaBlend.
DoAnimate Same as TSprite.DoAnimate.
DoPixelCheck Same as TSprite.DoPixelCheck.
Green Same as TSprite..Green.
ImageIndex Same as TSprite..ImageIndex.
Red Same as TSprite.Red.
Rotation Same as TSprite.Rotation.
ScaleX Same as TSprite.ScaleX.
ScaleY Same as TSprite.ScaleY.