← Documentation Home

SetParticleImage

Category: Particle Effects (Pro)

Back to System Functions


Signature

SetParticleImage(system As Integer, image As Integer)

Returns

Void

Description

Selects the image drawn for every live particle. Pass 0 to draw inexpensive four-pixel-square particles with the current draw color.

Performance and behavior

Set the image hotspot to its visual center for natural particle rotation.

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

Example

SetImageHotspot spark, ImageWidth(spark) / 2, ImageHeight(spark) / 2
SetParticleImage particles, spark