Particles

From GiderosMobile
Revision as of 17:38, 7 January 2021 by Hgy29 (talk | contribs) (→‎Methods)

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