All effect emitters are based on this type and can use its functions.
| EffectBase | All effect emitters are based on this type and can use its functions. |
| Member Functions | |
| AddParticle | |
| SetOffset | |
| SetAdditionalVector | |
| Related Constants | |
| C_PROBABILITY_CONSTANTS | Used with EffectBase::AddParticle. |
| C_PROBABILITY_DEFAULT | Used to say “equal chance of creating all types particles we add”. |
nil AddParticle(Particle particle, number probability)
Adds a new particle to be initted and sets the odds of choosing it versus other particles that have been added.
| particle | A valid Particle object. |
| probability | The odds of this particle spawning compared with other particles that were added. 0.1 for 10 percent. Use C_PROBABILITY_DEFAULT to let the emitter decide. |
nil SetOffset(Vector2 vOffset)
Sets the effect position in relation to the entity it’s attached to.
| vOffset | A Vector2 object containing the offset coordinates. |
nil SetAdditionalVector(Vector2 v)
This vector is added to the velocity of each particle once as it’s created.
| v | A Vector2 object containing the vector to add. Vector2(0,-1) would mean shoot up, for instance. |
| C_PROBABILITY_CONSTANTS | Used with EffectBase::AddParticle. |
| C_PROBABILITY_DEFAULT | Used to say “equal chance of creating all types particles we add”. |
Used with EffectBase::AddParticle.