1 |
if live_call() |
2 |
return global.live_result; |
3 |
if (distance_to_point(xstart, ystart) > 60) |
4 |
{ |
5 |
image_alpha -= 0.2 |
6 |
if (image_alpha <= 0) |
7 |
instance_destroy() |
8 |
} |
9 |
else if (fade_in == true) |
10 |
{ |
11 |
image_alpha += 0.2 |
12 |
if (image_alpha >= 1) |
13 |
{ |
14 |
fade_in = false |
15 |
image_alpha = 1 |
16 |
} |
17 |
} |
18 |
switch scene |
19 |
{ |
20 |
case 0: |
21 |
break |
22 |
case 1: |
23 |
if (speed_current < speed_max) |
24 |
speed_current += accel_speed |
25 |
bullet_dist -= speed_current |
26 |
break |
27 |
default: |
28 |
|
29 |
} |
30 |
|
31 |
x = xstart + (lengthdir_x(bullet_dist, direction)) |
32 |
y = ystart + (lengthdir_y(bullet_dist, direction)) |