|
setBufferSize( size )
|
Sets the size of the buffer (the max allowed amount of particles in the system).
|
|
setSprite( sprite )
|
Sets the image which is to be emitted.
|
|
|
|
|
setEmissionRate( rate )
|
Sets the amount of particles emitted per second.
|
|
setLifetime( life )
|
Sets how long the particle system should emit particles (if -1 then it emits particles forever).
|
|
setParticleLife( life )
|
Sets the life of the particles.
|
|
setParticleLife( min, max )
|
Sets the life of the particles.
|
|
|
|
|
setPosition( x, y )
|
Sets the position of the emitter.
|
|
setDirection( direction )
|
Sets the direction the particles will be emitted in (in degrees).
|
|
setSpread( spread )
|
Sets the amount of spread for the system.
|
|
|
|
|
setSpeed( speed )
|
Sets the speed of the particles.
|
|
setSpeed( min, max )
|
Sets the speed of the particles.
|
|
|
|
|
setGravity( gravity )
|
Sets the gravity affecting the particles (acceleration along the y-axis).
|
|
setGravity( min, max )
|
Sets the gravity affecting the particles (acceleration along the y-axis).
|
|
setRadialAcceleration( acceleration )
|
Sets the radial acceleration (acceleration towards the emitter).
|
|
setRadialAcceleration( min, max )
|
Sets the radial acceleration (acceleration towards the emitter).
|
|
setTangentialAcceleration( acceleration )
|
Sets the tangential acceleration (acceleration perpendicular to the particle's direction).
|
|
setTangentialAcceleration( min, max )
|
Sets the tangential acceleration (acceleration perpendicular to the particle's direction).
|
|
|
|
|
setSize( size )
|
Sets the size of the image (1.0 being normal size).
|
|
setSize( start, end )
|
Sets the size of the image (1.0 being normal size).
|
|
setSize( start, end, variation )
|
Sets the size of the image (1.0 being normal size).
|
|
setSizeVariation( variation )
|
Sets the degree of variation (0 meaning no variation and 1 meaning full variation between start and end).
|
|
|
|
|
setRotation( rotation )
|
Sets the rotation of the image upon particle creation (in degrees).
|
|
setRotation( min, max )
|
Sets the rotation of the image upon particle creation (in degrees).
|
|
setSpin( size )
|
Sets the spin of the sprite.
|
|
setSpin( start, end )
|
Sets the spin of the sprite.
|
|
setSpin( start, end, variation )
|
Sets the spin of the sprite.
|
|
setSpinVariation( variation )
|
Sets the degree of variation (0 meaning no variation and 1 meaning full variation between start and end).
|
|
|
|
|
setColor( color )
|
Sets the color of the image (color modulation needs to be activated for it to have any effect).
|
|
setColor( start, end )
|
Sets the color of the image (color modulation needs to be activated for it to have any effect).
|
|
|
|
|
getX( )
|
Gets the x-coordinate of the particle emitter's position.
|
|
getY( )
|
Gets the y-coordinate of the particle emitter's position.
|
|
getDirection( )
|
Gets the direction of the particle emitter (in degrees).
|
|
getSpread( )
|
Gets the amount of directional spread of the particle emitter (in degrees).
|
|
|
|
|
count( )
|
Gets the amount of particles that are currently in the system.
|
|
|
|
|
start( )
|
Starts the particle emitter.
|
|
stop( )
|
Stops the particle emitter, resetting the lifetime counter.
|
|
pause( )
|
Pauses the particle emitter.
|
|
reset( )
|
Resets the particle emitter, removing any existing particles and resetting the lifetime counter.
|
|
|
|
|
isActive( )
|
Checks whether the particle system is actively emitting particles.
|
|
isEmpty( )
|
Checks whether the particle system is empty of particles.
|
|
isFull( )
|
Checks whether the particle system is full of particles.
|
|
|
|
|
update( dt )
|
Updates the particle system; moving, creating and killing particles.
|