# 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 AddParticleColorKeyFrame.
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 )

UINT agk::CreateParticles( float x, float y )

CreateParticles( ID, x, y )

void agk::CreateParticles( UINT ID, float x, float y )

## Parameters

- x - The x coordinate to position this emitter.
- y - The y coordinate to position this emitter.
- ID - The ID to use when referencing this particle emitter.