1 |
if live_call() |
2 |
return global.live_result; |
3 |
if (!fade_out) |
4 |
image_alpha += 0.15 |
5 |
else |
6 |
{ |
7 |
image_alpha -= 0.15 |
8 |
if (image_alpha < 0) |
9 |
instance_destroy() |
10 |
} |
11 |
for (var i = 0; i < pellet_count; i++) |
12 |
{ |
13 |
if instance_exists(pellet[i]) |
14 |
{ |
15 |
pellet[i].direction += pellet_speed |
16 |
pellet[i].x = x + (lengthdir_x(pellet_dist, pellet[i].direction)) |
17 |
pellet[i].y = y + (lengthdir_y(pellet_dist, pellet[i].direction)) |
18 |
pellet[i].image_alpha = other.image_alpha |
19 |
} |
20 |
} |
21 |
if (pellet_dist > (pellet_dist_default + 0.1)) |
22 |
pellet_dist = lerp(pellet_dist, pellet_dist_default, 0.15) |