Sets the particle type to blend between two colours


part_type_colour2(ind, colour1, colour2);

Argument Description
ind The index of the particle type to change.
colour1 The colour the particle will start at.
colour2 The colour the particle will end at.

Returns: N/A


This function can be used to set a two colour gradient for each particle created of the given type. The first colour is that which all particles will start with, and the second colour is the one on which the particle will end with, and a smooth gradient change will occur to the colour over the particles lifetime from one colour to the other.


part_type_colour2( part_Health, c_red, c_white);

The above code will make all particles created of the type indexed in the variable "part_Health" have a colour blend from red to white over their lifetime.

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