Difference between revisions of "ParticleSystem:getEmitterLifetime"

(Created page with "{{newin|0.9.0|090|type=function}} Gets how long the particle system will emit particles (if -1 then it emits particles forever). == Function == === Synopsis === <source lang=...")
 
m (Synopsis: s/set/get/)
 
Line 4: Line 4:
 
=== Synopsis ===
 
=== Synopsis ===
 
<source lang="lua">
 
<source lang="lua">
life = ParticleSystem:setEmitterLifetime( )
+
life = ParticleSystem:getEmitterLifetime( )
 
</source>
 
</source>
 
=== Arguments ===
 
=== Arguments ===

Latest revision as of 04:55, 1 September 2014

Available since LÖVE 0.9.0
This function is not supported in earlier versions.

Gets how long the particle system will emit particles (if -1 then it emits particles forever).

Function

Synopsis

life = ParticleSystem:getEmitterLifetime( )

Arguments

Nothing.

Returns

number life
The lifetime of the emitter (in seconds).

See Also

Other Languages