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