part_emitter_clear

Clears the settings of a given emitter.

Syntax:

GML Code Example

part_emitter_clear(ps, ind);


Argument Description
ps The particle system that the emitter is in.
ind The index of the emitter to clear.


Returns: N/A


Description

With this function you can clear the given emitter from the specified particle system back to its default state. This will also stop any particles that are being streamed from the emitter at the time, and if you wish to use the emitter again you will need to set the region position and particle type using the part_emitter_region function.


Example:

GML Code Example

part_emitter_clear(Sname, p_emit1 );

The above code will clear the particle emitter indexed in the variable "p_emit1".





No Examples Submitted

Does this page need better examples? Be the first to Submit

No Edits Suggested

Is this page unclear or not descriptive enough? Suggest an edit to the page and with enough upvotes your changes will be made.

No Questions Have Been Ask

Do you have a question about this page? Ask it Here