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


GML Code Example

if mouse_check_button_pressed(mb_left)
    effect_create_above(ef_flare, x + lengthdir_x(32, image_angle), y + lengthdir_y(32, image_angle), 0, c_white);
    instance_create(x + lengthdir_x(32, image_angle), y + lengthdir_y(32, image_angle), obj_Bullet);

The above code will create a small, white, flare effect at the indicated position as well as an instance of "obj_Bullet" when the mouse button has been pressed.

Next: ef_rain

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