part_type_clear

Clears all of the settings of a given particle type, returning it to its defaults.

Syntax:

GML Code Example

part_type_clear(ind);


Argument Description
ind The index of the particle type to clear.


Returns: N/A


Description

With this function you can "reset" a particle, returning all the values for each of the functions relating to the particle (life, colour, alpha, orientation etc...) to their default values. Note that this function does not remove any particles currently visible in the room from the screen, for that you should be using part_particles_clear.


Example:

GML Code Example

part_type_clear(global.explode_part);

The above code will clear the particle type indexed in the global variable "explode_part" to its default values.





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