Difference between revisions of "Particles"

From GiderosMobile
Line 28: Line 28:
 
[[Special:MyLanguage/Particles:scaleParticles|Particles:scaleParticles]] ''scale or resize all particles in this sprite''<br/><!-- GIDEROSMTD:Particles:scaleParticles(scale,absolute) scale or resize all particles in this sprite -->[[Special:MyLanguage/Particles:setParticleAngle|Particles:setParticleAngle]] ''set angle of particle''<br/><!-- GIDEROSMTD:Particles:setParticleAngle(i,angle) set angle of particle -->
 
[[Special:MyLanguage/Particles:scaleParticles|Particles:scaleParticles]] ''scale or resize all particles in this sprite''<br/><!-- GIDEROSMTD:Particles:scaleParticles(scale,absolute) scale or resize all particles in this sprite -->[[Special:MyLanguage/Particles:setParticleAngle|Particles:setParticleAngle]] ''set angle of particle''<br/><!-- GIDEROSMTD:Particles:setParticleAngle(i,angle) set angle of particle -->
 
[[Special:MyLanguage/Particles:setParticleColor|Particles:setParticleColor]] ''set color of particles''<br/><!-- GIDEROSMTD:Particles:setParticleColor(i,color,alpha) set color of particles -->
 
[[Special:MyLanguage/Particles:setParticleColor|Particles:setParticleColor]] ''set color of particles''<br/><!-- GIDEROSMTD:Particles:setParticleColor(i,color,alpha) set color of particles -->
[[Special:MyLanguage/Particles:setParticleDecay|Particles:setParticleDecay]] <br/><!-- GIDEROSMTD:Particles:setParticleDecay(i,decay,decayAlpha,decayGrowth,decayAngular)  -->
+
[[Special:MyLanguage/Particles:setParticleDecay|Particles:setParticleDecay]] ''set the decay factor of particles'' <br/><!-- GIDEROSMTD:Particles:setParticleDecay(i,decay,decayAlpha,decayGrowth,decayAngular)  set the decay factor of particles -->
 
[[Special:MyLanguage/Particles:setParticlePosition|Particles:setParticlePosition]] ''set position of particle''<br/><!-- GIDEROSMTD:Particles:setParticlePosition(i,x,y) set position of particle -->
 
[[Special:MyLanguage/Particles:setParticlePosition|Particles:setParticlePosition]] ''set position of particle''<br/><!-- GIDEROSMTD:Particles:setParticlePosition(i,x,y) set position 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:setParticleSize|Particles:setParticleSize]] ''set size of particle''<br/><!-- GIDEROSMTD:Particles:setParticleSize(i,size) set size of particle -->

Revision as of 18:38, 7 January 2021

Supported platforms: Platform android.pngPlatform ios.pngPlatform mac.pngPlatform pc.pngPlatform html5.pngPlatform winrt.pngPlatform win32.png
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.

Methods

Particles.new Create new particles group
Particles:addParticles Add particles
Particles:clearTexture Clear texture for all particles
Particles:getNearestParticle Get the index of the nearest particle to the given point
Particles:getParticleAngle get particle angle
Particles:getParticleColor Get color and alpha value of particle
Particles:getParticleDecay Get particle decay factor
Particles:getParticlePosition get position of particle
Particles:getParticleSize get size of particle in pixels
Particles:getParticleSpeed Get speed of particle
Particles:getParticleTag Get the tag associated to the particle
Particles:getParticleTtl get initial time to live of particle
Particles:getParticles get particles
Particles:isPaused Tell if the Particle set is paused
Particles:removeParticles Remove particles by index in table or as arguments
Particles:scaleParticles scale or resize all particles in this sprite
Particles:setParticleAngle set angle of particle
Particles:setParticleColor set color of particles
Particles:setParticleDecay set the decay factor of particles
Particles:setParticlePosition set position of particle
Particles:setParticleSize set size of particle
Particles:setParticleSpeed Set speed of particles
Particles:setParticleTag Set a tag to a particle
Particles:setParticleTtl set time to live
Particles:setPaused Pause or resume the Particle set
Particles:setTexture Set texture to all particles

Events

Constants