Difference between revisions of "Particles"
m (mostly formatting :-)) |
|||
Line 14: | Line 14: | ||
[[Special:MyLanguage/Particles:addParticles|Particles:addParticles]] ''Add particles''<br/><!-- GIDEROSMTD:Particles:addParticles(particles) Add particles --> | [[Special:MyLanguage/Particles:addParticles|Particles:addParticles]] ''Add particles''<br/><!-- GIDEROSMTD:Particles:addParticles(particles) Add particles --> | ||
[[Special:MyLanguage/Particles:clearTexture|Particles:clearTexture]] ''Clear texture for all particles''<br/><!-- GIDEROSMTD:Particles:clearTexture() Clear texture for all particles --> | [[Special:MyLanguage/Particles:clearTexture|Particles:clearTexture]] ''Clear texture for all particles''<br/><!-- GIDEROSMTD:Particles:clearTexture() Clear texture for all particles --> | ||
− | [[Special:MyLanguage/Particles:getNearestParticle|Particles:getNearestParticle]] <br/><!-- GIDEROSMTD:Particles:getNearestParticle(x,y) --> | + | [[Special:MyLanguage/Particles:getNearestParticle|Particles:getNearestParticle]] ''Get the index of the nearest particle to the given point'' <br/><!-- GIDEROSMTD:Particles:getNearestParticle(x,y) Get the index of the nearest particle to the given point--> |
[[Special:MyLanguage/Particles:getParticleAngle|Particles:getParticleAngle]] ''get particle angle''<br/><!-- GIDEROSMTD:Particles:getParticleAngle(i) get particle angle --> | [[Special:MyLanguage/Particles:getParticleAngle|Particles:getParticleAngle]] ''get particle angle''<br/><!-- GIDEROSMTD:Particles:getParticleAngle(i) get particle angle --> | ||
[[Special:MyLanguage/Particles:getParticleColor|Particles:getParticleColor]] ''Get color and alpha value of particle''<br/><!-- GIDEROSMTD:Particles:getParticleColor(i) Get color and alpha value of particle --> | [[Special:MyLanguage/Particles:getParticleColor|Particles:getParticleColor]] ''Get color and alpha value of particle''<br/><!-- GIDEROSMTD:Particles:getParticleColor(i) Get color and alpha value of particle --> | ||
− | [[Special:MyLanguage/Particles:getParticleDecay|Particles:getParticleDecay]] <br/><!-- GIDEROSMTD:Particles:getParticleDecay(i) | + | [[Special:MyLanguage/Particles:getParticleDecay|Particles:getParticleDecay]] ''Get particle decay factor'' <br/><!-- GIDEROSMTD:Particles:getParticleDecay(i) Get particle decay factor --> |
[[Special:MyLanguage/Particles:getParticlePosition|Particles:getParticlePosition]] ''get position of particle''<br/><!-- GIDEROSMTD:Particles:getParticlePosition(i) get position of particle --> | [[Special:MyLanguage/Particles:getParticlePosition|Particles:getParticlePosition]] ''get position of particle''<br/><!-- GIDEROSMTD:Particles:getParticlePosition(i) get position of particle --> | ||
[[Special:MyLanguage/Particles:getParticleSize|Particles:getParticleSize]] ''get size of particle in pixels''<br/><!-- GIDEROSMTD:Particles:getParticleSize(i) get size of particle in pixels --> | [[Special:MyLanguage/Particles:getParticleSize|Particles:getParticleSize]] ''get size of particle in pixels''<br/><!-- GIDEROSMTD:Particles:getParticleSize(i) get size of particle in pixels --> | ||
[[Special:MyLanguage/Particles:getParticleSpeed|Particles:getParticleSpeed]] ''Get speed of particle''<br/><!-- GIDEROSMTD:Particles:getParticleSpeed(i) Get speed of particle --> | [[Special:MyLanguage/Particles:getParticleSpeed|Particles:getParticleSpeed]] ''Get speed of particle''<br/><!-- GIDEROSMTD:Particles:getParticleSpeed(i) Get speed of particle --> | ||
− | [[Special:MyLanguage/Particles:getParticleTag|Particles:getParticleTag]] <br/><!-- GIDEROSMTD:Particles:getParticleTag(i) | + | [[Special:MyLanguage/Particles:getParticleTag|Particles:getParticleTag]] ''Get the tag associated to the particle'' <br/><!-- GIDEROSMTD:Particles:getParticleTag(i) Get the tag associated to the particle --> |
[[Special:MyLanguage/Particles:getParticleTtl|Particles:getParticleTtl]] ''get initial time to live of particle''<br/><!-- GIDEROSMTD:Particles:getParticleTtl(i) get initial time to live of particle --> | [[Special:MyLanguage/Particles:getParticleTtl|Particles:getParticleTtl]] ''get initial time to live of particle''<br/><!-- GIDEROSMTD:Particles:getParticleTtl(i) get initial time to live of particle --> | ||
[[Special:MyLanguage/Particles:getParticles|Particles:getParticles]] <br/><!-- GIDEROSMTD:Particles:getParticles(set,tag) --> | [[Special:MyLanguage/Particles:getParticles|Particles:getParticles]] <br/><!-- GIDEROSMTD:Particles:getParticles(set,tag) --> | ||
Line 32: | Line 32: | ||
[[Special:MyLanguage/Particles:setParticleSize|Particles:setParticleSize]] ''set size of particle''<br/><!-- GIDEROSMTD:Particles:setParticleSize(i,size) set size of particle --> | [[Special:MyLanguage/Particles:setParticleSize|Particles:setParticleSize]] ''set size of particle''<br/><!-- GIDEROSMTD:Particles:setParticleSize(i,size) set size of particle --> | ||
[[Special:MyLanguage/Particles:setParticleSpeed|Particles:setParticleSpeed]] ''Set speed of particles''<br/><!-- GIDEROSMTD:Particles:setParticleSpeed(i,x,y,a,s) Set speed of particles --> | [[Special:MyLanguage/Particles:setParticleSpeed|Particles:setParticleSpeed]] ''Set speed of particles''<br/><!-- GIDEROSMTD:Particles:setParticleSpeed(i,x,y,a,s) Set speed of particles --> | ||
− | [[Special:MyLanguage/Particles:setParticleTag|Particles:setParticleTag]] <br/><!-- GIDEROSMTD:Particles:setParticleTag(i,tag) | + | [[Special:MyLanguage/Particles:setParticleTag|Particles:setParticleTag]] ''Set a tag to a particle'' <br/><!-- GIDEROSMTD:Particles:setParticleTag(i,tag) Set a tag to a particle --> |
[[Special:MyLanguage/Particles:setParticleTtl|Particles:setParticleTtl]] ''set time to live''<br/><!-- GIDEROSMTD:Particles:setParticleTtl(i,ttl) set time to live --> | [[Special:MyLanguage/Particles:setParticleTtl|Particles:setParticleTtl]] ''set time to live''<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(paused) | + | [[Special:MyLanguage/Particles:setPaused|Particles:setPaused]] ''Pause or resume the Particle set'' <br/><!-- GIDEROSMTD:Particles:setPaused(paused) Pause or resume the Particle set --> |
[[Special:MyLanguage/Particles:setTexture|Particles:setTexture]] ''Set texture to all particles''<br/><!-- GIDEROSMTD:Particles:setTexture(texture) Set texture to all particles --> | [[Special:MyLanguage/Particles:setTexture|Particles:setTexture]] ''Set texture to all particles''<br/><!-- GIDEROSMTD:Particles:setTexture(texture) Set texture to all particles --> | ||
| style="width: 50%; vertical-align:top;"| | | style="width: 50%; vertical-align:top;"| | ||
+ | |||
=== Events === | === Events === | ||
=== Constants === | === Constants === |
Revision as of 17:24, 7 January 2021
Supported platforms:
Available since: Gideros 2016.06
Inherits from: Sprite
Description
A particle system which allows to draw several identical dots or bitmaps, with varying colour and orientation.
MethodsParticles.new Create new particles group |
EventsConstants |