Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_board_camerashifter_Collision_obj_mainchara_board

(view raw script w/o annotations or w/e)
1
if (other.canfreemove == true)
2
{
3
    if (i_ex(obj_board_camera))
4
    {
5
        if (image_index == 0)
6
            obj_board_camera.shift = "right";
7
        if (image_index == 1)
8
            obj_board_camera.shift = "left";
9
        if (image_index == 2)
10
            obj_board_camera.shift = "up";
11
        if (image_index == 3)
12
            obj_board_camera.shift = "down";
13
    }
14
    other.canfreemove = false;
15
}