Built in constant for a spark 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 spark effect as illustrated in the image below:


GML Code Example

if power
    effect_create_above(ef_spark, bbox_left + random(sprite_width), bbox_top + random(sprite_height), choose(0, 1), merge_colour(c_white, c_yellow, random(1));

The above code will create a spark effect over the area of the instance if the variable "power" is true.

Next: ef_star

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