part_type_clear

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

语法:

part_type_clear(ind);


参数 描述
ind The index of the particle type to clear.


返回: N/A(无返回值)


描述

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.


例如:

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.


上一页: Particle Types
下一页: part_type_shape
© Copyright YoYo Games Ltd. 2018 All Rights Reserved