ef_explosion

Built in constant for an explosion effect.

Syntax:

GML Code Example

ef_explosion;


Returns: N/A.


Description

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




Example:

GML Code Example

if health <= 0
    {
    effect_create_above(ef_explosion, x, y, 2, c_red);
    instance_destroy();
    }
 

The above code will create a red explosion effect with a random size at the position of the instance running the code if that instance has less than 0 health.





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