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 |
{ |
14 |
direction = irandom_range(0, 360) |
15 |
} until (angle_difference(direction, other.spawn_dir_last) > other.spawn_dir_offset); |
16 |
} |
17 |
spawn_dir_last = beam.direction |
18 |
spawn_timer = spawn_timer_max |
19 |
} |