CreateParticles

Description

Creates a particle emitter in a free ID and at the given location in world coordinates. It returns the ID used to create the emitter.

Particle emitters create a flow of small sprites that last for a fixed amount of time before disappearing. The particles can be influenced by forces during their life using AddParticlesForce. They can also change color over time using AddParticlesColorKeyFrame.

Particles cannot be modified individually and behave as a group using the same texture and depth. This allows the AGK to draw them more efficiently than a similar number of normal sprites.

Definition

integer CreateParticles( x, y )

CreateParticles( ID, x, y )

Parameters