part_type_alpha3

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

Syntax:

GML Code Example

part_type_alpha3(ind, alpha1, alpha2, alpha3);


Argument Description
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.


Returns: N/A


Description

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.


Example:

GML Code Example

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.





No Examples Submitted

Does this page need better examples? Be the first to Submit

No Edits Suggested

Is this page unclear or not descriptive enough? Suggest an edit to the page and with enough upvotes your changes will be made.

No Questions Have Been Ask

Do you have a question about this page? Ask it Here