Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_puzzle_controller_overworld_yellow_Step_0

(view raw script w/o annotations or w/e)
1
if (global.snowdin_flag[2] == 2)
2
    return;
3
if (camera_end == true)
4
{
5
    if (scr_camera_move
scr_camera_move

function scr_camera_move(argument0, argument1, argument2) //gml_Script_scr_camera_move { if (!instance_exists(obj_camera)) { instance_create(__view_get((9 << 0), 0).x, __view_get((9 << 0), 0).y, obj_camera) __view_set((9 << 0), 0, 1120) } else { obj_camera.x = __view_get((9 << 0), 0).x obj_camera.y = __view_get((9 << 0), 0).y __view_set((9 << 0), 0, 1120) } obj_camera.move = true obj_camera.xx = argument0 obj_camera.yy = argument1 obj_camera.spd = argument2 if (abs(argument0 - obj_camera.x) <= argument2 && abs(argument1 - obj_camera.y) <= argument2) return true; else return false; }
(obj_pl.x, obj_pl.y, 2) == true)
6
        active = 2
7
}
8
if (active == 2)
9
{
10
    active = false
11
    camera_end = false
12
    global.cutscene = false
13
    obj_pl.alarm[0] = 5
14
    __view_set((9 << 0), 0, 1031)
15
    obj_snowdin06_lever_overworld_yellow.waiter = 0
16
    if (global.snowdin_flag[2] < 2)
17
        instance_create(230, 110, obj_molten_rock_overworld_yellow)
18
}