Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_cutscene_camera_move

(view raw script w/o annotations or w/e)
1
function cutscene_camera_move() //gml_Script_cutscene_camera_move
2
{
3
    if (!instance_exists(obj_camera))
4
        instance_create(((__view_get((0 << 0), 0)) + (__view_get((2 << 0), 0)) * 0.5), ((__view_get((1 << 0), 0)) + (__view_get((3 << 0), 0)) * 0.5), obj_camera)
5
    __view_set((9 << 0), 0, 1120)
6
    obj_camera.move = true
7
    obj_camera.xx = argument[0]
8
    obj_camera.yy = argument[1]
9
    obj_camera.spd = argument[2]
10
    if (obj_camera.x == argument[0] && obj_camera.y == argument[1])
11
    {
12
        if (argument_count > 3 && argument[3] == true)
13
            return true;
14
        obj_camera.move = false
15
        obj_camera.on_target = false
16
        obj_camera.xx = 0
17
        obj_camera.yy = 0
18
        cutscene_advance()
19
        return true;
20
    }
21
    else
22
        return false;
23
}