1 |
if (live_call()) |
2 |
return global.live_result; |
3 |
var box = 3154; |
4 |
var attack_delay = 15; |
5 |
instance_create_depth(box.x, box.bbox_top - 80, -1000, obj_flowey_1_attack_9_head); |
6 |
obj_flowey_1_attack_9_head.alarm[0] = attack_delay; |
7 |
flowey_ystart = obj_battle_flowey_body_1.y; |
8 |
obj_battle_flowey_body_1.y = -1000; |
9 |
var y_offset_start = box.bbox_top - 10; |
10 |
var y_offset_inc = 40; |
11 |
var thorn_number = 10; |
12 |
var side_last = 1; |
13 |
for (var i = 0; i < thorn_number; i++) |
14 |
{ |
15 |
var yy = y_offset_start + (i * y_offset_inc); |
16 |
if (side_last == 1) |
17 |
{ |
18 |
var thorn = instance_create_depth(box.bbox_left + 15, yy, -100, obj_flowey_1_attack_9_thorns); |
19 |
thorn.image_index = 0; |
20 |
} |
21 |
else |
22 |
{ |
23 |
var thorn = instance_create_depth(box.bbox_right - 15, yy, -100, obj_flowey_1_attack_9_thorns); |
24 |
thorn.image_index = 7; |
25 |
} |
26 |
side_last *= -1; |
27 |
} |
28 |
alarm[0] = room_speed * 7; |