Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_ceroba_transformation_p1_hair_Step_0

(view raw script w/o annotations or w/e)
1
if (instance_exists(obj_ceroba_body_pacifist_phase_1))
2
{
3
    switch (obj_ceroba_body_pacifist_phase_1.sprite_index)
4
    {
5
        case spr_ceroba_transformation_p1_7:
6
            attach_points = [[-1000, -1000], [-1000, -1000], [-1000, -1000], [-1000, -1000], [-1000, -1000], [-1000, -1000], [-1000, -1000], [-1000, -1000], [-1000, -1000], [-1000, -1000], [-1000, -1000], [-1000, -1000], [-1000, -1000], [-1000, -1000], [-1000, -1000], [-1000, -1000], [-1000, -1000], [-1000, -1000], [-1000, -1000], [-1000, -1000], [-1000, -1000], [-1000, -1000], [-1000, -1000], [-1000, -1000], [145, 10], [145, 10], [145, 10], [145, 10], [145, 8], [145, 8], [145, 6]];
7
            scr_point_attach
scr_point_attach

function scr_point_attach() { if (live_call()) return global.live_result; var coords = argument[0]; var target_instance = argument[1]; if (!instance_exists(target_instance)) { show_debug_message("Target attach point instance does not exist!"); return false; } var x_offset = sprite_get_xoffset(target_instance.sprite_index); var y_offset = sprite_get_yoffset(target_instance.sprite_index); if (argument_count > 2 && argument[2] == true) { x_offset = 0; y_offset = 0; } var array_index = clamp(target_instance.image_index, 0, array_length(coords) - 1); x = (target_instance.x - x_offset) + coords[array_index][0]; y = (target_instance.y - y_offset) + coords[array_index][1]; }
(attach_points, 773);
8
            break;
9
        default:
10
            instance_destroy();
11
            break;
12
    }
13
}
14
else
15
{
16
    instance_destroy();
17
}