1 |
if live_call() |
2 |
return global.live_result; |
3 |
if instance_exists(obj_battle_enemy_attack_parent) |
4 |
{ |
5 |
with (obj_battle_enemy_attack_parent) |
6 |
{ |
7 |
image_alpha -= 0.3 |
8 |
if (image_alpha <= 0) |
9 |
instance_destroy() |
10 |
} |
11 |
} |
12 |
switch scene |
13 |
{ |
14 |
case 0: |
15 |
image_xscale += 0.1 |
16 |
image_yscale = image_xscale |
17 |
if (image_xscale >= 1.5) |
18 |
{ |
19 |
image_xscale = 1.5 |
20 |
image_yscale = 1.5 |
21 |
image_alpha = 1 |
22 |
scene++ |
23 |
} |
24 |
image_alpha = image_xscale / 1.5 |
25 |
break |
26 |
case 1: |
27 |
image_xscale -= 0.1 |
28 |
image_yscale = image_xscale |
29 |
if (image_xscale <= 1) |
30 |
{ |
31 |
image_xscale = 1 |
32 |
image_yscale = 1 |
33 |
scr_screenshake_battlescr_screenshake_battlefunction scr_screenshake_battle() //gml_Script_scr_screenshake_battle
{
instance_destroy(obj_screenshake_battle)
var screenshake = instance_create(0, 0, obj_screenshake_battle)
battle_screenshake_duration = argument[0]
battle_screenshake_intensity = argument[1]
battle_screenshake_dec = battle_screenshake_intensity / battle_screenshake_duration
} (6, 3) |
34 |
with (obj_flowey_battle_gray_wheel_petal_gray) |
35 |
active = true |
36 |
scene++ |
37 |
} |
38 |
break |
39 |
case 2: |
40 |
if (!instance_exists(obj_flowey_battle_gray_vine_for_grab)) |
41 |
{ |
42 |
audio_play_sound(snd_undertale_spearrise, 1, 0) |
43 |
instance_create_depth(-10, obj_heart_battle_fighting_parent.y, -100, obj_flowey_battle_gray_vine_for_grab) |
44 |
with (instance_create_depth(650, obj_heart_battle_fighting_parent.y, -100, obj_flowey_battle_gray_vine_for_grab)) |
45 |
{ |
46 |
image_xscale = -1 |
47 |
hspeed *= -1 |
48 |
} |
49 |
} |
50 |
scene++ |
51 |
break |
52 |
case 3: |
53 |
break |
54 |
case 4: |
55 |
for (var i = 0; i < 6; i++) |
56 |
{ |
57 |
if obj_flowey_battle_final.petal_alive[i] |
58 |
{ |
59 |
var petal = instance_create_depth(x, y, (depth + 1), obj_flowey_battle_gray_wheel_petals_special) |
60 |
petal.sprite_index = petal_sprite_special[i] |
61 |
petal.direction = i * 60 |
62 |
petal.petal_phase_number = i + 1 |
63 |
} |
64 |
} |
65 |
scene++ |
66 |
break |
67 |
case 5: |
68 |
cutscene_wait(0.5) |
69 |
break |
70 |
case 6: |
71 |
cutscene_sfx_play(snd_f_whatwouldyoulike, 1) |
72 |
break |
73 |
case 7: |
74 |
if (!alarm[0]) |
75 |
alarm[0] = 30alarm[0]if live_call()
return global.live_result;
obj_flowey_battle_gray_vine_grab.soul_can_shoot = true |
76 |
if (spin_speed < spin_speed_max) |
77 |
spin_speed += 0.5 |
78 |
var shake_modifier = spin_speed / spin_speed_max |
79 |
x = xstart |
80 |
y = ystart |
81 |
x += ((choose(-1, 1)) * shake_modifier) |
82 |
y += ((choose(-1, 1)) * shake_modifier) |
83 |
with (obj_flowey_battle_gray_wheel_petals_special) |
84 |
direction += other.spin_speed |
85 |
break |
86 |
case 8: |
87 |
if (spin_speed > 0) |
88 |
spin_speed -= 0.5 |
89 |
else |
90 |
{ |
91 |
x = xstart |
92 |
y = ystart |
93 |
scene++ |
94 |
return; |
95 |
} |
96 |
with (obj_flowey_battle_gray_wheel_petals_special) |
97 |
direction += other.spin_speed |
98 |
shake_modifier = spin_speed / spin_speed_max |
99 |
x = xstart |
100 |
y = ystart |
101 |
x += ((choose(-1, 1)) * shake_modifier) |
102 |
y += ((choose(-1, 1)) * shake_modifier) |
103 |
break |
104 |
case 9: |
105 |
audio_play_sound(snd_f_great, 1, 0) |
106 |
scene++ |
107 |
break |
108 |
case 10: |
109 |
cutscene_wait(1) |
110 |
break |
111 |
case 11: |
112 |
obj_flowey_battle_final.stage_switch = wheel_phase_number |
113 |
scene++ |
114 |
break |
115 |
} |