ef_firework

Built in constant for a firework effect.

语法:

ef_firework;


返回: N/A


描述

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




例如:

repeat(10)
   {
   effect_create_above(ef_firework, random(room_width), random(room_height), choose(0, 1, 2), make_colour_hsv(random(255), 255, 255));
   }

The above code will create 10 random sized and coloured fireworks effects at a random position within the room.


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