ParticleSystem:moveTo

ParticleSystem:moveTo Available since LÖVE 0.9.1 This function is not supported in earlier versions. Moves the position of the emitter. This results in smoother particle spawning behaviour than if ParticleSystem:setPosition is used every frame. Function Synopsis ParticleSystem:moveTo( x, y ) Arguments number x Position along x-axis. number y Position along y-axis. Returns Nothing. See Also ParticleSystem

ParticleSystem:pause

ParticleSystem:pause Pauses the particle emitter. Function Synopsis ParticleSystem:pause( ) Arguments None. Returns Nothing. See Also ParticleSystem

ParticleSystem:reset

ParticleSystem:reset Resets the particle emitter, removing any existing particles and resetting the lifetime counter. Function Synopsis ParticleSystem:reset( ) Arguments None. Returns Nothing. See Also ParticleSystem

ParticleSystem:setAreaSpread

ParticleSystem:setAreaSpread Available since LÖVE 0.9.0 This function is not supported in earlier versions. Sets area-based spawn parameters for the particles. Newly created particles will spawn in an area around the emitter based on the parameters to this function. Function Synopsis ParticleSystem:setAreaSpread( distribution, dx, dy ) Arguments AreaSpreadDistribution distribution The type of distribution for new particles. number dx The maximum spawn distance from the emitter along the

ParticleSystem:setBufferSize

ParticleSystem:setBufferSize Sets the size of the buffer (the max allowed amount of particles in the system). Function Synopsis ParticleSystem:setBufferSize( size ) Arguments number size The buffer size. Returns Nothing. See Also ParticleSystem

ParticleSystem:setColor

ParticleSystem:setColor Removed in LÖVE 0.8.0 It has been replaced with ParticleSystem:setColors. Sets the color of the image. Function Synopsis ParticleSystem:setColor( r1, g1, b1, a1, r2, g2, b2, a2 ) Arguments number r1 Start color, red component (0-255). number g1 Start color, green component (0-255). number b1 Start color, blue component (0-255). number a1 Start color, alpha component (0-255). number r2 (r1) End color, red component (0-255). number g2 (g1) End color, green compo

ParticleSystem:setColors

ParticleSystem:setColors Available since LÖVE 0.8.0 It has replaced ParticleSystem:setColor. Sets a series of colors to apply to the particle sprite. The particle system will interpolate between each color evenly over the particle's lifetime. Arguments can be passed in groups of four, representing the components of the desired RGBA value, or as tables of RGBA component values, with a default alpha value of 255 if only three values are given. At least one color must be specified. A maximum

ParticleSystem:setDirection

ParticleSystem:setDirection Sets the direction the particles will be emitted in. Function Synopsis ParticleSystem:setDirection( direction ) Arguments number direction The direction of the particles (in radians). Returns Nothing. See Also ParticleSystem

ParticleSystem:setEmissionRate

ParticleSystem:setEmissionRate Sets the amount of particles emitted per second. Function Synopsis ParticleSystem:setEmissionRate( rate ) Arguments number rate The amount of particles per second. Returns Nothing. See Also ParticleSystem

ParticleSystem:setEmitterLifetime

ParticleSystem:setEmitterLifetime Available since LÖVE 0.9.0 It has been renamed from ParticleSystem:setLifetime. Sets how long the particle system should emit particles (if -1 then it emits particles forever). Function Synopsis ParticleSystem:setEmitterLifetime( life ) Arguments number life The lifetime of the emitter (in seconds). Returns Nothing. See Also ParticleSystem