Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_board_freeroam_warp_touch_Step_0

(view raw script w/o annotations or w/e)
1
touchbuffer--;
2
if (touchbuffer <= 0 && place_meeting(x, y, obj_mainchara_board))
3
{
4
    if (i_ex(obj_board_camera))
5
    {
6
        obj_board_camera.shift = "warptile";
7
        obj_board_camera.warpx = warpx;
8
        obj_board_camera.warpy = warpy;
9
        obj_board_camera.playerX = playx;
10
        obj_board_camera.playerY = playy;
11
        obj_board_camera.movetype = movetype;
12
    }
13
    if (i_ex(obj_mainchara_board))
14
    {
15
        obj_mainchara_board.movetype = "board";
16
        obj_mainchara_board.movebuffer = 20;
17
        obj_mainchara_board.movesleft = 0;
18
    }
19
    if (i_ex(obj_board_controller))
20
        obj_board_controller.phase = 0;
21
    touchbuffer = 20;
22
    global.interact = 1;
23
}