Difference between revisions of "B2.ParticleSystem:createParticle"

From GiderosMobile
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
<languages />
 
 
'''Available since:''' Gideros 2015.06.30<br/>
 
'''Available since:''' Gideros 2015.06.30<br/>
'''Class:''' [[Special:MyLanguage/b2.ParticleSystem|b2.ParticleSystem]]<br/>
+
'''Class:''' [[b2.ParticleSystem]]<br/>
  
 
=== Description ===
 
=== Description ===
 
Creates a new particle.
 
Creates a new particle.
 +
<syntaxhighlight lang="lua">
 +
(number) = b2.ParticleSystem:createParticle(particleDef)
 +
</syntaxhighlight>
 
Accepts table with possible keys:
 
Accepts table with possible keys:
 
*''flags''
 
*''flags''
Line 13: Line 15:
 
*''alpha''
 
*''alpha''
 
and returns the particle id.
 
and returns the particle id.
<source lang="lua">
 
(number) = b2.ParticleSystem:createParticle(particleDef)
 
</source>
 
  
 
=== Parameters ===
 
=== Parameters ===
'''particleDef''': (table) table with particle data <br/>
+
'''particleDef''': (table) table with particle data<br/>
  
 
=== Return values ===
 
=== Return values ===

Latest revision as of 05:56, 8 November 2024