1 |
if live_call() |
2 |
return global.live_result; |
3 |
switch scene |
4 |
{ |
5 |
case 0: |
6 |
image_xscale = lerp(image_xscale, 1.2, 0.1) |
7 |
image_yscale = image_xscale |
8 |
image_angle = 720 * image_xscale |
9 |
if (image_xscale >= 1.19) |
10 |
{ |
11 |
image_xscale = 1.2 |
12 |
scene++ |
13 |
} |
14 |
break |
15 |
case 1: |
16 |
image_xscale = lerp(image_xscale, 1, 0.4) |
17 |
image_yscale = image_xscale |
18 |
image_angle = 720 * image_xscale |
19 |
if (image_xscale < 1.01) |
20 |
{ |
21 |
image_xscale = 1 |
22 |
scene++ |
23 |
} |
24 |
break |
25 |
case 2: |
26 |
instance_destroy() |
27 |
audio_play_sound(snd_impact_gunshot, 1, 0) |
28 |
spawner.hit_flash = true |
29 |
spawner.alarm[1] = 3 |
30 |
break |
31 |
} |
32 |
|
33 |
if (spawner != noone && instance_exists(spawner)) |
34 |
{ |
35 |
x = spawner.x |
36 |
y = spawner.y |
37 |
} |
38 |
else |
39 |
instance_destroy() |