Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_board_b2entrance_animateonsen_Step_0

(view raw script w/o annotations or w/e)
1
if (active)
2
{
3
    if (con == 0)
4
    {
5
        if (i_ex(obj_board_grayregion))
6
        {
7
            if (place_meeting(x, y, obj_board_grayregion))
8
            {
9
                if (photod == 0)
10
                {
11
                    var pointsDisplay = instance_create(x + 16, y + 32, obj_board_pointsGetDisplay);
12
                    pointsDisplay.amount = 10;
13
                    pointsDisplay.depth = depth - 1;
14
                    photod = 1;
15
                }
16
                if (image_speed == 0.125)
17
                    image_speed = 0;
18
                else
19
                    image_speed = 0.125;
20
                con = 1;
21
            }
22
        }
23
    }
24
    if (con == 1 && !i_ex(obj_board_grayregion))
25
        con = 0;
26
}