part_type_alpha3

Sets a particle type to fade between three alpha values throughout its lifespan.

语法:

part_type_alpha3(ind, alpha1, alpha2, alpha3);


参数 描述
ind The index of the particle type to change.
alpha1 The starting alpha of the particle.
alpha2 The halfway point alpha of the particle.
alpha3 The ending alpha of the particle.


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


描述

This function can be used to set a three alpha (transparency) value gradient for each particle created of the given type. The first alpha is that which all particles will start with, and the second alpha is the one that will be blended to half way through its lifetime and the third alpha is the one with which the particle will end with. A smooth gradient change will occur through the alphas over the particles lifetime from one to the other.


例如:

part_type_alpha3( part_Health, 0.5, 1, 0);

The above code will make all particles created of the type indexed in the variable "part_Health" have an alpha blend from 0.5 to 1 to 0 over their lifetime.


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