ef_rain

Built in constant for a rain effect.

Syntax:

GML Code Example

ef_rain;


Returns: N/A.


Description

This constant is for use in the functions effect_create_above and effect_create_below, and will create a rain 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.


Example:

GML Code Example

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

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


Next: ef_ring



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