Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_board_softsolid_Step_2

(view raw script w/o annotations or w/e)
1
var met = instance_place(x, y, obj_mainchara_board);
2
if (i_ex(met))
3
{
4
    if (pushdir == 0)
5
        met.y = (bbox_bottom + 2) - 16;
6
    if (pushdir == 1)
7
        met.x = bbox_right + 2;
8
    if (pushdir == 2)
9
        met.y = bbox_top - 2;
10
    if (pushdir == 3)
11
        met.x = bbox_left - 2 - 32;
12
}