part_type_alpha1

Sets a particle type to have a single alpha value throughout its lifespan.

语法:

part_type_alpha1(ind, alpha1);


参数 描述
ind The index of the particle type to change.
alpha1 The alpha of the particle.


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


描述

This function is used to set a particle type to have a single alpha value (transparency) for the total duration of the lifetime of each individual particle, and this can be from 0 (transparent) to 1 (opaque).


例如:

part_type_alpha1(global.Snow_Part, 0.5);

The above code will set all particles created of the particle type indexed in the global variable "Snow_Part" to have an alpha value of 0.5 (semi-transparent).


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