Built in constant for a snow effect.


GML Code Example


Returns: N/A.


This constant is for use in the functions effect_create_above and effect_create_below, and will create a snow effect as illustrated in the image below:

NOTE: This effect needs no x/y position as it is always drawn at the 0,0 room position to cover the full screen and the size value relates to the number of particles created, not the size of individual particles.


GML Code Example

switch (global.weather)
    case 1:
    effect_create_above(ef_rain, 0, 0, 1, c_gray);
    case 2:
    effect_create_above(ef_snow, 0, 0, 1, c_gray);

The above code will create a rain or snow effect depending on the value of the global variable "weather".

Next: ef_spark

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