Particle

Particle

Particle Object - Created automatically by Particle Emitters

Constructor

# new Particle(position, tileIndexopt, tileSizeopt, angleopt)

Create a particle with the given settings
Parameters:
Name Type Attributes Default Description
position Vector2 World space position of the particle
tileIndex Number <optional>
-1 Tile to use to render, untextured if -1
tileSize Vector2 <optional>
defaultTileSize Size of tile in source pixels
angle Number <optional>
0 Angle to rotate the particle

Methods

# render()

Render the particle, automatically called each frame, sorted by renderOrder