1 |
if live_call() |
2 |
return global.live_result; |
3 |
if (scene == 1) |
4 |
{ |
5 |
if (image_index >= (image_number - 1)) |
6 |
{ |
7 |
image_index = 0 |
8 |
sprite_index = spr_flowey1_attack_mouth_face_2 |
9 |
scene = 2 |
10 |
} |
11 |
} |
12 |
var alt_bullet_speed = 3 |
13 |
if (scene == 2) |
14 |
{ |
15 |
var pellet_gap_size = 1 |
16 |
var pellet_number = 8 |
17 |
var pellet_destroy = irandom_range(2, (pellet_number - pellet_gap_size - 1)) |
18 |
var spread_amount = 40 |
19 |
if (floor(image_index) == 0 && (!pellet_spawn_noloop)) |
20 |
{ |
21 |
for (var i = 0; i < pellet_number; i++) |
22 |
{ |
23 |
if (i < pellet_destroy || i > (pellet_destroy + (pellet_gap_size - 1))) |
24 |
{ |
25 |
var new_pellet = instance_create_depth(x, y, (depth - 1), obj_flowey_1_attack_pellets) |
26 |
with (new_pellet) |
27 |
direction = 270 - spread_amount * 0.5 + i * (spread_amount / (pellet_number - 1)) |
28 |
} |
29 |
} |
30 |
pellet_spawn_noloop = true |
31 |
} |
32 |
if (image_index >= (image_number - 1)) |
33 |
pellet_spawn_noloop = false |
34 |
} |