Difference between revisions of "ParticleSystem:setQuads"

Line 22: Line 22:
 
== See Also ==
 
== See Also ==
 
* [[parent::ParticleSystem]]
 
* [[parent::ParticleSystem]]
 +
* [[ParticleSystem:getQuads]]
 
[[Category:Functions]]
 
[[Category:Functions]]
 
{{#set:Description=Sets a series of [[Quad]]s to use for the particle sprites.}}
 
{{#set:Description=Sets a series of [[Quad]]s to use for the particle sprites.}}
 
== Other Languages ==
 
== Other Languages ==
 
{{i18n|ParticleSystem:setQuads}}
 
{{i18n|ParticleSystem:setQuads}}

Revision as of 18:40, 1 August 2017

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

Sets a series of Quads to use for the particle sprites. Particles will choose a Quad from the list based on the particle's current lifetime, allowing for the use of animated sprite sheets with ParticleSystems.

Function

Synopsis

ParticleSystem:setQuads( quad1, quad2, ... )

Arguments

Quad quad1
The first Quad to use.
Quad quad2
The second Quad to use.

Returns

Nothing.

Function

Synopsis

ParticleSystem:setQuads( quads )

Arguments

table quads
A table containing the Quads to use.

Returns

Nothing.

See Also

Other Languages