ef_star

Built in constant for a star effect.

Syntax:

ef_star;


Returns: N/A.


Description

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




Example:

repeat(10)
   {
   effect_create_above(ef_star, x - 32 + random(64), y - 32 + random(64), choose(0, 1, 2), c_yellow);
   }

The above code will create 10 random sized, yellow stars at a random position around the instance running the code.


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