W3cubDocs

/LÖVE

ParticleSystem:clone

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

Creates an identical copy of the ParticleSystem in the stopped state.

Function

Synopsis

particlesystem = ParticleSystem:clone( )

Arguments

None.

Returns

ParticleSystem particlesystem
The new identical copy of this ParticleSystem.

Notes

Cloned ParticleSystem inherit all the set-able state of the original ParticleSystem, but they are initialized stopped.

See Also

© 2006–2016 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/ParticleSystem:clone