BBMOD_CollisionEventModule

A constructor defined in BBMOD_CollisionEventModule.gml

Extends BBMOD_ParticleModule

new BBMOD_CollisionEventModule([_callback])

Description

A particle module that executes a callback on particle collision.

Arguments

Name Type Description
_callback Function The function to execute. Must take the emitter as the first argument and the particle's index as the second argument. Defaults to undefined.

Properties

Name Description
Callback The function to execute on particle collision. Must take the emitter as the first argument and the particle's index as the second argument. Default value is undefined.

Inherited properties

Name Description
Enabled If true then the module is enabled. Defaults value is true.

Inherited methods

Name Description
on_finish Executed once at the end of the emitter's emission cycle. Never executed if the emitted particle system is looping!
on_particle_finish Executed when a particle dies.
on_particle_start Executed when a new particle is spawned.
on_start Executed at the beginning of the emitter's emission cycle and every time it loops.
on_update Executed every time the emitter is updated.

See also

BBMOD_EParticle.HasCollided, BBMOD_ParticleEmitter, BBMOD_ParticleEmitter.Particles

Do you find this page helpful?

Copyright © 2024, BlueBurn. Built on April 26, 2024 using GMDoc.