← Documentation Home

EmitParticles

Category: Particle Effects (Pro)

Back to System Functions


Signature

EmitParticles(system As Integer, count As Integer, x As Integer, y As Integer)

Returns

Void

Description

Creates up to count particles at the supplied screen position using the system's current lifetime, speed, direction, and size ranges.

Performance and behavior

Emission stops at capacity without reallocating or replacing live particles.

Pro feature: compiling code that uses this function requires a license with the GamePhysics feature enabled.

Example

EmitParticles particles, 80, MouseX(), MouseY()