1 |
if live_call() |
2 |
return global.live_result; |
3 |
var needle_count = 3 |
4 |
switch scene |
5 |
{ |
6 |
case 0: |
7 |
image_alpha += 0.1 |
8 |
if (image_alpha >= 1) |
9 |
{ |
10 |
image_alpha = 1 |
11 |
scene++ |
12 |
} |
13 |
break |
14 |
case 1: |
15 |
image_yscale = lerp(image_yscale, 0.5, 0.15) |
16 |
x = xstart + (irandom_range(-3, 3)) |
17 |
y = ystart + (irandom_range(-3, 3)) |
18 |
cutscene_wait(shoot_delay) |
19 |
break |
20 |
case 2: |
21 |
image_speed = 1.5 |
22 |
speed = -4 |
23 |
if (x < 320) |
24 |
var spawn_dir_current = -45 |
25 |
else |
26 |
spawn_dir_current = 135 |
27 |
for (var i = 0; i < needle_count; i++) |
28 |
{ |
29 |
var needle = instance_create_depth((x + (random_range(-15, 15))), (y + (random_range(-15, 15))), -100, obj_flowey_battle_phase_2_yarn_needle) |
30 |
needle.direction = spawn_dir_current |
31 |
needle.speed = 11 |
32 |
spawn_dir_current += 45 |
33 |
} |
34 |
if (image_index >= (image_number - 1)) |
35 |
{ |
36 |
image_speed = 0 |
37 |
image_index = 0 |
38 |
scene++ |
39 |
} |
40 |
break |
41 |
case 3: |
42 |
image_alpha -= 0.2 |
43 |
if (image_alpha <= 0) |
44 |
instance_destroy() |
45 |
break |
46 |
} |
47 |
|
48 |
if (scene >= 2) |
49 |
image_yscale = lerp(image_yscale, 1, 0.25) |