Creates a DuckEngine Effect
The Effect Class. Store a particleEmitter instance and particles that can be run easily
1.2.0
Creates an Effect instance.
A range of 2 numbers to determine the new created particles x position
A range of 2 numbers to determine the new created particles y position
ParticleEmitter instance
Game instance
Effect
Determines if the Effect should be visible by the current scene's current camera
2.1.0
A gameobject that the Effect is following
A unique identifier for the Effect
ParticleEmitter to control
Range of numbers for x pos
Range of numbers for y pos
Shape, always "Effect" used for Scene.displayList
Determines the visibility of the Effect
Used for depth sorted
Draws the effect.
DO NOT CALL MANUALLY, CALLED IN GAME LOOP USING SCENE.displayList
Makes the particleEmitter emit
Makes the particleEmitter emit for a duration
Duration in milliseconds
Makes the effect follow the GameObject
GameObject to follow
Stops the particleEmitter emitting
Makes the effect stop following the GameObject
Generated using TypeDoc
Creates a DuckEngine Effect
The Effect Class. Store a particleEmitter instance and particles that can be run easily
1.2.0