Difference between revisions of "Particles"

From GiderosMobile
Line 7: Line 7:
 
| style="width: 50%; vertical-align:top;"|
 
| style="width: 50%; vertical-align:top;"|
 
=== Methods ===
 
=== Methods ===
[[Particles.new]] ''<translate>Create new particles group</translate>''<br/>
+
[[Special:MyLanguage/Particles.new|Particles.new]] ''<translate>Create new particles group</translate>''<br/>
[[Particles:addParticles]] ''<translate>Add particles</translate>''<br/>
+
[[Special:MyLanguage/Particles:addParticles|Particles:addParticles]] ''<translate>Add particles</translate>''<br/>
[[Particles:clearTexture]] ''<translate>Clear texture for all particles</translate>''<br/>
+
[[Special:MyLanguage/Particles:clearTexture|Particles:clearTexture]] ''<translate>Clear texture for all particles</translate>''<br/>
[[Particles:getParticleAngle]] ''<translate>get particle angle</translate>''<br/>
+
[[Special:MyLanguage/Particles:getParticleAngle|Particles:getParticleAngle]] ''<translate>get particle angle</translate>''<br/>
[[Particles:getParticleColor]] ''<translate>Get color and alpha value of particle</translate>''<br/>
+
[[Special:MyLanguage/Particles:getParticleColor|Particles:getParticleColor]] ''<translate>Get color and alpha value of particle</translate>''<br/>
[[Particles:getParticleDecay]] <br/>
+
[[Special:MyLanguage/Particles:getParticleDecay|Particles:getParticleDecay]] <br/>
[[Particles:getParticlePosition]] ''<translate>get position of particle</translate>''<br/>
+
[[Special:MyLanguage/Particles:getParticlePosition|Particles:getParticlePosition]] ''<translate>get position of particle</translate>''<br/>
[[Particles:getParticleSize]] ''<translate>get size of particle in pixels</translate>''<br/>
+
[[Special:MyLanguage/Particles:getParticleSize|Particles:getParticleSize]] ''<translate>get size of particle in pixels</translate>''<br/>
[[Particles:getParticleSpeed]] ''<translate>Get speed of particle</translate>''<br/>
+
[[Special:MyLanguage/Particles:getParticleSpeed|Particles:getParticleSpeed]] ''<translate>Get speed of particle</translate>''<br/>
[[Particles:getParticleTag]] <br/>
+
[[Special:MyLanguage/Particles:getParticleTag|Particles:getParticleTag]] <br/>
[[Particles:getParticleTtl]] ''<translate>get initial time to live of particle</translate>''<br/>
+
[[Special:MyLanguage/Particles:getParticleTtl|Particles:getParticleTtl]] ''<translate>get initial time to live of particle</translate>''<br/>
[[Particles:getParticles]] <br/>
+
[[Special:MyLanguage/Particles:getParticles|Particles:getParticles]] <br/>
[[Particles:isPaused]] <br/>
+
[[Special:MyLanguage/Particles:isPaused|Particles:isPaused]] <br/>
[[Particles:removeParticles]] ''<translate>Remove particles by index in table or as arguments</translate>''<br/>
+
[[Special:MyLanguage/Particles:removeParticles|Particles:removeParticles]] ''<translate>Remove particles by index in table or as arguments</translate>''<br/>
[[Particles:setParticleAngle]] ''<translate>set angle of particle</translate>''<br/>
+
[[Special:MyLanguage/Particles:setParticleAngle|Particles:setParticleAngle]] ''<translate>set angle of particle</translate>''<br/>
[[Particles:setParticleColor]] ''<translate>set color of particles</translate>''<br/>
+
[[Special:MyLanguage/Particles:setParticleColor|Particles:setParticleColor]] ''<translate>set color of particles</translate>''<br/>
[[Particles:setParticleDecay]] <br/>
+
[[Special:MyLanguage/Particles:setParticleDecay|Particles:setParticleDecay]] <br/>
[[Particles:setParticlePosition]] ''<translate>set position of particle</translate>''<br/>
+
[[Special:MyLanguage/Particles:setParticlePosition|Particles:setParticlePosition]] ''<translate>set position of particle</translate>''<br/>
[[Particles:setParticleSize]] ''<translate>set size of particle</translate>''<br/>
+
[[Special:MyLanguage/Particles:setParticleSize|Particles:setParticleSize]] ''<translate>set size of particle</translate>''<br/>
[[Particles:setParticleSpeed]] ''<translate>Set speed of particles</translate>''<br/>
+
[[Special:MyLanguage/Particles:setParticleSpeed|Particles:setParticleSpeed]] ''<translate>Set speed of particles</translate>''<br/>
[[Particles:setParticleTag]] <br/>
+
[[Special:MyLanguage/Particles:setParticleTag|Particles:setParticleTag]] <br/>
[[Particles:setParticleTtl]] ''<translate>set time to live</translate>''<br/>
+
[[Special:MyLanguage/Particles:setParticleTtl|Particles:setParticleTtl]] ''<translate>set time to live</translate>''<br/>
[[Particles:setParticlesTag]] <br/>
+
[[Special:MyLanguage/Particles:setParticlesTag|Particles:setParticlesTag]] <br/>
[[Particles:setPaused]] <br/>
+
[[Special:MyLanguage/Particles:setPaused|Particles:setPaused]] <br/>
[[Particles:setTexture]] ''<translate>Set texture to all particles</translate>''<br/>
+
[[Special:MyLanguage/Particles:setTexture|Particles:setTexture]] ''<translate>Set texture to all particles</translate>''<br/>
 
| style="width: 50%; vertical-align:top;"|
 
| style="width: 50%; vertical-align:top;"|
 
=== Events ===
 
=== Events ===
 
=== Constants ===
 
=== Constants ===
 
|}
 
|}

Revision as of 17:35, 23 August 2018

Supported platforms:
Available since: Gideros 2016.06

Description

Particles sprite (alpha), which allows to draw several identical dots or bitmaps with varying colour and orientation

Methods

Particles.new Create new particles group
Particles:addParticles Add particles
Particles:clearTexture Clear texture for all particles
Particles:getParticleAngle get particle angle
Particles:getParticleColor Get color and alpha value of particle
Particles:getParticleDecay
Particles:getParticlePosition get position of particle
Particles:getParticleSize get size of particle in pixels
Particles:getParticleSpeed Get speed of particle
Particles:getParticleTag
Particles:getParticleTtl get initial time to live of particle
Particles:getParticles
Particles:isPaused
Particles:removeParticles Remove particles by index in table or as arguments
Particles:setParticleAngle set angle of particle
Particles:setParticleColor set color of particles
Particles:setParticleDecay
Particles:setParticlePosition set position of particle
Particles:setParticleSize set size of particle
Particles:setParticleSpeed Set speed of particles
Particles:setParticleTag
Particles:setParticleTtl set time to live
Particles:setParticlesTag
Particles:setPaused
Particles:setTexture Set texture to all particles

Events

Constants