ef_spark

Built in constant for a spark effect.

Syntax:

ef_spark;


Returns: N/A.


Description

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:




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.


Back: Simple Effects
Next: ef_star
© Copyright YoYo Games Ltd. 2018 All Rights Reserved