ef_flare

Built in constant for a flare effect.

语法:

ef_flare;


返回: 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:




例如:

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_layer(x + lengthdir_x(32, image_angle), y + lengthdir_y(32, image_angle), "Bullets", 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.


上一页: Simple Effects
下一页: ef_rain
© Copyright YoYo Games Ltd. 2018 All Rights Reserved