Difference between revisions of "love.graphics.newParticleSystem"

m
m
Line 1: Line 1:
Creates a new ParticleSystem.
+
Creates a new [[ParticleSystem]].
 
{{newobjectnotice}}
 
{{newobjectnotice}}
 
== Function ==
 
== Function ==
Line 17: Line 17:
 
[[Category:Functions]]
 
[[Category:Functions]]
 
[[Sub-Category::Object Creation| ]]
 
[[Sub-Category::Object Creation| ]]
{{#set:Description=Creates a new ParticleSystem.}}
+
{{#set:Description=Creates a new [[ParticleSystem]].}}
 
{{#set:Since=000}}
 
{{#set:Since=000}}
 
== Other Languages ==
 
== Other Languages ==
 
{{i18n|love.graphics.newParticleSystem}}
 
{{i18n|love.graphics.newParticleSystem}}

Revision as of 22:09, 29 March 2013

Creates a new ParticleSystem.

O.png This function can be slow if it is called repeatedly, such as from love.update or love.draw. If you need to use a specific resource often, create it once and store it somewhere it can be reused!  



Function

Synopsis

system = love.graphics.newParticleSystem( image, buffer )

Arguments

Image image
The image object.
number buffer
The max number of particles at the same time.

Returns

ParticleSystem system
A new ParticleSystem.

See Also


Other Languages