← Documentation Home

SetParticleSpeed

Category: Particle Effects (Pro)

Back to System Functions


Signature

SetParticleSpeed(system As Integer, minimum As Double, maximum As Double)

Returns

Void

Description

Sets the randomly selected starting speed range, in pixels per second, for newly emitted particles.

Performance and behavior

The default speed is 0. Negative values are clamped to 0.

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

Example

SetParticleSpeed particles, 80, 180