Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_ceroba_phase_2_p2_rope_circle_Create_0

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
for (var i = 0; i < 16; i++)
4
{
5
    var circle_part = instance_create_depth(x, y, depth, obj_rope_circle_part)
6
    circle_part.image_angle = i * 22
7
}
8
mask_dist = 55
9
circle_angle = 90
10
circle_angle_inc = 6
11
if (global.hotland_flag[2] >= 3)
12
    circle_angle_inc = 8
13
var xx = x + (lengthdir_x(mask_dist, circle_angle))
14
var yy = y + (lengthdir_y(mask_dist, circle_angle))
15
var circle_mask = instance_create_depth(xx, yy, (depth - 1), obj_ceroba_attack_rope_circle_mask)
16
obj_ceroba_attack_rope_circle_mask.image_angle = circle_angle - 90
17
alarm[0] = 240
alarm[0]

instance_destroy()