Skip to content
Andrew Gleeson edited this page Jan 13, 2022 · 1 revision

Index

Basic Methods

Properties

Stream/Burst


Basic Methods

exists()

Returns: Boolean

Returns whether this ParticleType exists.

clear()

Returns: N/A

Reset ParticleType properties to their 'default' values.

destroy()

Returns: N/A

Removes ParticleType from memory.

Properties

alpha( alpha1, [alpha2], [alpha3])

Returns: self

Set up to 3 alpha values for the ParticleType to blend through its lifetime.

blend( additive)

Returns: self

Toggle additive blendmode when drawing this ParticleType.

color( color1, [color2], [color3])

Returns: self

Set up to 3 color values for the ParticleType to blend through its lifetime.

colour( colour1, [colour2], [colour3])

Returns: self

See color().

direction( min, max, [increase], [wiggle]

Returns: self

Set the movement direction of the ParticleType.

gravity( amount, direction)

Returns: self

Set the gravity strength/direction that affects the ParticleType during its lifetime.

life( min, max)

Returns: self

Set the minimum/maximum lifespan of new instances of this ParticleType.

orientation( min, max, [increase], [wiggle], [relative])

Returns: self

Set 'image_angle' properties of the associated sprite of this ParticleType.

scale( xscale, yscale)

Returns: self

Set initial values for both 'image_xscale'/'image_yscale' of the associated sprite of this ParticleType.

shape( shape)

Returns: self

Use a built-in GameMaker particle sprite on this ParticleType.

size( min, max, [increase], [wiggle])

Returns: self

Set size properties of the associated sprite of this ParticleType.

speed( min, max, [increase], [wiggle])

Returns: self

Set the movement speed of the ParticleType.

sprite( sprite, anim, stretch, random)

Returns: self

Set up a custom sprite to use on this ParticleType.

Stream/Burst

Note: The following functions allow you to define a ParticleType to stream or burst another ParticleType, essentially creating an emitter on every new particle that is created. Use these functions with caution, as they can exponentially increase the amount of particles that are generated, which can significantly impact performance.

step( type, num)

Returns: N/A

Set this ParticleType to stream another ParticleType on itself during its lifetime.

death( type, num)

Returns: N/A

Set this ParticleType to 'burst' another ParticleType on itself at the end of its lifetime.