part_type_clear

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

Syntax:

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:

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.


Back: Particle Types
Next: part_type_shape
© Copyright YoYo Games Ltd. 2018 All Rights Reserved