Difference between revisions of "Particles"
From GiderosMobile
Line 10: | Line 10: | ||
| style="width: 50%; vertical-align:top;"| | | style="width: 50%; vertical-align:top;"| | ||
=== <translate>Methods</translate> === | === <translate>Methods</translate> === | ||
− | [[Special:MyLanguage/Particles.new|Particles.new]] ''<translate>Create new particles group</translate>''<br/><!-- GIDEROSMTD:Particles.new --> | + | [[Special:MyLanguage/Particles.new|Particles.new]] ''<translate>Create new particles group</translate>''<br/><!-- GIDEROSMTD:Particles.new() Create new particles group --> |
− | [[Special:MyLanguage/Particles:addParticles|Particles:addParticles]] ''<translate>Add particles</translate>''<br/><!-- GIDEROSMTD:Particles:addParticles --> | + | [[Special:MyLanguage/Particles:addParticles|Particles:addParticles]] ''<translate>Add particles</translate>''<br/><!-- GIDEROSMTD:Particles:addParticles(particles) Add particles --> |
− | [[Special:MyLanguage/Particles:clearTexture|Particles:clearTexture]] ''<translate>Clear texture for all particles</translate>''<br/><!-- GIDEROSMTD:Particles:clearTexture --> | + | [[Special:MyLanguage/Particles:clearTexture|Particles:clearTexture]] ''<translate>Clear texture for all particles</translate>''<br/><!-- GIDEROSMTD:Particles:clearTexture() Clear texture for all particles --> |
− | [[Special:MyLanguage/Particles:getParticleAngle|Particles:getParticleAngle]] ''<translate>get particle angle</translate>''<br/><!-- GIDEROSMTD:Particles:getParticleAngle --> | + | [[Special:MyLanguage/Particles:getParticleAngle|Particles:getParticleAngle]] ''<translate>get particle angle</translate>''<br/><!-- GIDEROSMTD:Particles:getParticleAngle(i) get particle angle --> |
− | [[Special:MyLanguage/Particles:getParticleColor|Particles:getParticleColor]] ''<translate>Get color and alpha value of particle</translate>''<br/><!-- GIDEROSMTD:Particles:getParticleColor --> | + | [[Special:MyLanguage/Particles:getParticleColor|Particles:getParticleColor]] ''<translate>Get color and alpha value of particle</translate>''<br/><!-- GIDEROSMTD:Particles:getParticleColor(i) Get color and alpha value of particle --> |
− | [[Special:MyLanguage/Particles:getParticleDecay|Particles:getParticleDecay]] <br/><!-- GIDEROSMTD:Particles:getParticleDecay --> | + | [[Special:MyLanguage/Particles:getParticleDecay|Particles:getParticleDecay]] <br/><!-- GIDEROSMTD:Particles:getParticleDecay(i) --> |
− | [[Special:MyLanguage/Particles:getParticlePosition|Particles:getParticlePosition]] ''<translate>get position of particle</translate>''<br/><!-- GIDEROSMTD:Particles:getParticlePosition --> | + | [[Special:MyLanguage/Particles:getParticlePosition|Particles:getParticlePosition]] ''<translate>get position of particle</translate>''<br/><!-- GIDEROSMTD:Particles:getParticlePosition(i) get position of particle --> |
− | [[Special:MyLanguage/Particles:getParticleSize|Particles:getParticleSize]] ''<translate>get size of particle in pixels</translate>''<br/><!-- GIDEROSMTD:Particles:getParticleSize --> | + | [[Special:MyLanguage/Particles:getParticleSize|Particles:getParticleSize]] ''<translate>get size of particle in pixels</translate>''<br/><!-- GIDEROSMTD:Particles:getParticleSize(i) get size of particle in pixels --> |
− | [[Special:MyLanguage/Particles:getParticleSpeed|Particles:getParticleSpeed]] ''<translate>Get speed of particle</translate>''<br/><!-- GIDEROSMTD:Particles:getParticleSpeed --> | + | [[Special:MyLanguage/Particles:getParticleSpeed|Particles:getParticleSpeed]] ''<translate>Get speed of particle</translate>''<br/><!-- GIDEROSMTD:Particles:getParticleSpeed(i) Get speed of particle --> |
− | [[Special:MyLanguage/Particles:getParticleTag|Particles:getParticleTag]] <br/><!-- GIDEROSMTD:Particles:getParticleTag --> | + | [[Special:MyLanguage/Particles:getParticleTag|Particles:getParticleTag]] <br/><!-- GIDEROSMTD:Particles:getParticleTag(i) --> |
− | [[Special:MyLanguage/Particles:getParticleTtl|Particles:getParticleTtl]] ''<translate>get initial time to live of particle</translate>''<br/><!-- GIDEROSMTD:Particles:getParticleTtl --> | + | [[Special:MyLanguage/Particles:getParticleTtl|Particles:getParticleTtl]] ''<translate>get initial time to live of particle</translate>''<br/><!-- GIDEROSMTD:Particles:getParticleTtl(i) get initial time to live of particle --> |
− | [[Special:MyLanguage/Particles:getParticles|Particles:getParticles]] <br/><!-- GIDEROSMTD:Particles:getParticles --> | + | [[Special:MyLanguage/Particles:getParticles|Particles:getParticles]] <br/><!-- GIDEROSMTD:Particles:getParticles(set,tag) --> |
− | [[Special:MyLanguage/Particles:isPaused|Particles:isPaused]] <br/><!-- GIDEROSMTD:Particles:isPaused --> | + | [[Special:MyLanguage/Particles:isPaused|Particles:isPaused]] <br/><!-- GIDEROSMTD:Particles:isPaused() --> |
− | [[Special:MyLanguage/Particles:removeParticles|Particles:removeParticles]] ''<translate>Remove particles by index in table or as arguments</translate>''<br/><!-- GIDEROSMTD:Particles:removeParticles --> | + | [[Special:MyLanguage/Particles:removeParticles|Particles:removeParticles]] ''<translate>Remove particles by index in table or as arguments</translate>''<br/><!-- GIDEROSMTD:Particles:removeParticles(particle indeces) Remove particles by index in table or as arguments --> |
− | [[Special:MyLanguage/Particles:setParticleAngle|Particles:setParticleAngle]] ''<translate>set angle of particle</translate>''<br/><!-- GIDEROSMTD:Particles:setParticleAngle --> | + | [[Special:MyLanguage/Particles:setParticleAngle|Particles:setParticleAngle]] ''<translate>set angle of particle</translate>''<br/><!-- GIDEROSMTD:Particles:setParticleAngle(i,angle) set angle of particle --> |
− | [[Special:MyLanguage/Particles:setParticleColor|Particles:setParticleColor]] ''<translate>set color of particles</translate>''<br/><!-- GIDEROSMTD:Particles:setParticleColor --> | + | [[Special:MyLanguage/Particles:setParticleColor|Particles:setParticleColor]] ''<translate>set color of particles</translate>''<br/><!-- GIDEROSMTD:Particles:setParticleColor(i,color,alpha) set color of particles --> |
− | [[Special:MyLanguage/Particles:setParticleDecay|Particles:setParticleDecay]] <br/><!-- GIDEROSMTD:Particles:setParticleDecay --> | + | [[Special:MyLanguage/Particles:setParticleDecay|Particles:setParticleDecay]] <br/><!-- GIDEROSMTD:Particles:setParticleDecay(i,decay,decayAlpha,decayGrowth,decayAngular) --> |
− | [[Special:MyLanguage/Particles:setParticlePosition|Particles:setParticlePosition]] ''<translate>set position of particle</translate>''<br/><!-- GIDEROSMTD:Particles:setParticlePosition --> | + | [[Special:MyLanguage/Particles:setParticlePosition|Particles:setParticlePosition]] ''<translate>set position of particle</translate>''<br/><!-- GIDEROSMTD:Particles:setParticlePosition(i,x,y) set position of particle --> |
− | [[Special:MyLanguage/Particles:setParticleSize|Particles:setParticleSize]] ''<translate>set size of particle</translate>''<br/><!-- GIDEROSMTD:Particles:setParticleSize --> | + | [[Special:MyLanguage/Particles:setParticleSize|Particles:setParticleSize]] ''<translate>set size of particle</translate>''<br/><!-- GIDEROSMTD:Particles:setParticleSize(i,size) set size of particle --> |
− | [[Special:MyLanguage/Particles:setParticleSpeed|Particles:setParticleSpeed]] ''<translate>Set speed of particles</translate>''<br/><!-- GIDEROSMTD:Particles:setParticleSpeed --> | + | [[Special:MyLanguage/Particles:setParticleSpeed|Particles:setParticleSpeed]] ''<translate>Set speed of particles</translate>''<br/><!-- GIDEROSMTD:Particles:setParticleSpeed(i,x,y,a,s) Set speed of particles --> |
− | [[Special:MyLanguage/Particles:setParticleTag|Particles:setParticleTag]] <br/><!-- GIDEROSMTD:Particles:setParticleTag --> | + | [[Special:MyLanguage/Particles:setParticleTag|Particles:setParticleTag]] <br/><!-- GIDEROSMTD:Particles:setParticleTag(i,tag) --> |
− | [[Special:MyLanguage/Particles:setParticleTtl|Particles:setParticleTtl]] ''<translate>set time to live</translate>''<br/><!-- GIDEROSMTD:Particles:setParticleTtl --> | + | [[Special:MyLanguage/Particles:setParticleTtl|Particles:setParticleTtl]] ''<translate>set time to live</translate>''<br/><!-- GIDEROSMTD:Particles:setParticleTtl(i,ttl) set time to live --> |
− | [[Special:MyLanguage/Particles:setParticlesTag|Particles:setParticlesTag]] <br/><!-- GIDEROSMTD:Particles:setParticlesTag --> | + | [[Special:MyLanguage/Particles:setParticlesTag|Particles:setParticlesTag]] <br/><!-- GIDEROSMTD:Particles:setParticlesTag() --> |
− | [[Special:MyLanguage/Particles:setPaused|Particles:setPaused]] <br/><!-- GIDEROSMTD:Particles:setPaused --> | + | [[Special:MyLanguage/Particles:setPaused|Particles:setPaused]] <br/><!-- GIDEROSMTD:Particles:setPaused(paused) --> |
− | [[Special:MyLanguage/Particles:setTexture|Particles:setTexture]] ''<translate>Set texture to all particles</translate>''<br/><!-- GIDEROSMTD:Particles:setTexture --> | + | [[Special:MyLanguage/Particles:setTexture|Particles:setTexture]] ''<translate>Set texture to all particles</translate>''<br/><!-- GIDEROSMTD:Particles:setTexture(texture) Set texture to all particles --> |
| style="width: 50%; vertical-align:top;"| | | style="width: 50%; vertical-align:top;"| | ||
=== <translate>Events</translate> === | === <translate>Events</translate> === | ||
=== <translate>Constants</translate> === | === <translate>Constants</translate> === | ||
|} | |} |
Revision as of 15:32, 13 September 2018
Supported platforms:
Available since: Gideros 2016.06
Inherits from: Sprite
Description
Particles sprite (alpha), which allows to draw several identical dots or bitmaps with varying colour and orientation