1 |
if live_call() |
2 |
return global.live_result; |
3 |
switch scene |
4 |
{ |
5 |
case 0: |
6 |
image_xscale += 0.15 |
7 |
if (image_xscale >= 1.5) |
8 |
{ |
9 |
image_xscale = 1.5 |
10 |
flash_alpha = 1 |
11 |
instance_create_depth(x, y, (depth - 1), obj_newhome_03_cutscene_clover_soul_effect) |
12 |
scene++ |
13 |
} |
14 |
image_yscale = image_xscale |
15 |
break |
16 |
case 1: |
17 |
image_xscale = lerp(image_xscale, 1, 0.15) |
18 |
if (image_xscale <= 1) |
19 |
{ |
20 |
image_xscale = 1 |
21 |
scene++ |
22 |
} |
23 |
image_yscale = image_xscale |
24 |
break |
25 |
case 2: |
26 |
if cutscene_wait(1) |
27 |
{ |
28 |
if instance_exists(obj_newhome_03_cutscene_postfight_spare) |
29 |
obj_newhome_03_cutscene_postfight_spare.scene += 1 |
30 |
} |
31 |
break |
32 |
case 3: |
33 |
sin_deg += sin_deg_inc |
34 |
if (sin_deg >= 360) |
35 |
sin_deg -= 360 |
36 |
y = ystart + sin(degtorad(sin_deg)) * 2 |
37 |
break |
38 |
case 4: |
39 |
y = lerp(y, 272, 0.05) |
40 |
if (abs(y - 272) < 0.5) |
41 |
{ |
42 |
y = 272 |
43 |
cutscene_advance() |
44 |
} |
45 |
break |
46 |
case 5: |
47 |
cutscene_wait(0.5) |
48 |
break |
49 |
case 6: |
50 |
if (!alarm[0]) |
51 |
alarm[0] = 1alarm[0]if live_call()
return global.live_result;
alarm[0] = absorb_effect_delay
instance_create_depth(x, y, (depth - 1), obj_newhome_03_cutscene_clover_soul_absorb_effect)
absorb_effect_delay = floor(absorb_effect_delay * 0.75)
absorb_effect_count-- |
52 |
if (absorb_effect_count <= 0) |
53 |
cutscene_advance() |
54 |
break |
55 |
case 7: |
56 |
cutscene_wait(1) |
57 |
break |
58 |
case 8: |
59 |
obj_newhome_03_cutscene_clover_soul_capsule.flash_alpha = 1 |
60 |
obj_newhome_03_cutscene_clover_soul_capsule.image_index = 1 |
61 |
obj_newhome_03_cutscene_postfight_spare.scene++ |
62 |
audio_play_sound(snd_undertale_flash, 1, 0) |
63 |
instance_destroy() |
64 |
break |
65 |
} |
66 |
|
67 |
if (flash_alpha > 0.1) |
68 |
flash_alpha = lerp(flash_alpha, 0, 0.2) |
69 |
else |
70 |
flash_alpha = 0 |