1 |
if (instance_exists(obj_ceroba_transformation_mask)) |
2 |
{ |
3 |
x = obj_ceroba_transformation_mask.x; |
4 |
y = obj_ceroba_transformation_mask.y - 10; |
5 |
} |
6 |
spawn_timer--; |
7 |
if (spawn_timer <= 0) |
8 |
{ |
9 |
var beam = instance_create_depth(x, y, depth, obj_ceroba_transformation_beam); |
10 |
with (beam) |
11 |
{ |
12 |
do |
13 |
direction = irandom_range(0, 360); |
14 |
until (angle_difference(direction, other.spawn_dir_last) > other.spawn_dir_offset); |
15 |
} |
16 |
spawn_dir_last = beam.direction; |
17 |
spawn_timer = spawn_timer_max; |
18 |
} |