part_type_colour1

Sets a particle type to be a single colour throughout its lifespan.

语法:

part_type_colour1(ind, colour1);


参数 描述
ind The index of the particle type to change.
colour1 The single colour to make the particle type.


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


描述

This function is used to set a particle type to be a single colour for the total duration of the lifetime of each individual particle.


例如:

part_type_colour1(global.Snow_Part, c_white);

The above code will set all particles created of the particle type indexed in the global variable "Snow_Part" to be white only.


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