1 |
if live_call() |
2 |
return global.live_result; |
3 |
var shield_perc = obj_ceroba_phase_2_shield.fill_percentage |
4 |
if (shield_perc >= 1) |
5 |
{ |
6 |
instance_destroy() |
7 |
return; |
8 |
} |
9 |
if instance_exists(obj_rope_circle_part) |
10 |
{ |
11 |
with (obj_rope_circle_part) |
12 |
image_angle += other.circle_angle_inc |
13 |
} |
14 |
if instance_exists(obj_ceroba_attack_rope_circle_mask) |
15 |
{ |
16 |
circle_angle += circle_angle_inc |
17 |
if (circle_angle > 360) |
18 |
circle_angle -= 360 |
19 |
var xx = x + (lengthdir_x(mask_dist, circle_angle)) |
20 |
var yy = y + (lengthdir_y(mask_dist, circle_angle)) |
21 |
obj_ceroba_attack_rope_circle_mask.x = xx |
22 |
obj_ceroba_attack_rope_circle_mask.y = yy |
23 |
obj_ceroba_attack_rope_circle_mask.image_angle = circle_angle - 90 |
24 |
} |