part_type_blend

Sets a particle types blend mode.

Syntax:

GML Code Example

part_type_blend(ind, additive);


Argument Description
ind The index of the particle type to change.
additive Whether the particles should be blended additively (true) or normally (false).


Returns: N/A


Description

With this function you can make your particles be drawn with an additive blend mode (true) or not (false). Additive blending is a special blend mode that adds the luminosity values of each particle as they overlap, so that light colours will gradually get brighter (until they appear white) as they overlap, and dark colours become more and more transparent with black being almost invisible. This function can give some beautiful particle effects but may not always be necessary. For example, a smoke trail would have additive blending off to keep the effect gray, but a flame effect would probably have it on to make the particles more translucent and brighter.


Example:

GML Code Example

part_type_blend(part_Fire, true);

The above code will set all particles created of the particle type indexed in the variable "part_Fire" to have an additive blend mode.





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