Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_rotationTile_track2_Step_2

(view raw script w/o annotations or w/e)
1
if (init == 1)
2
{
3
    for (i = 0; i <= tilemax; i++)
4
    {
5
        tile[i].x += x - xprevious;
6
        tile[i].y += y - yprevious;
7
        tile[i].image_alpha = image_alpha;
8
        tile[i].image_blend = image_blend;
9
    }
10
}
11
if (init == 1)
12
{
13
    for (i = 0; i <= 20; i++)
14
    {
15
        if (i_ex(staticTile[i]))
16
            staticTile[i].x += x - xprevious;
17
        if (i_ex(staticTile[i]))
18
            staticTile[i].y += y - yprevious;
19
        if (i_ex(staticTile[i]))
20
            staticTile[i].image_alpha = image_alpha;
21
        if (i_ex(staticTile[i]))
22
            staticTile[i].image_blend = image_blend;
23
    }
24
}
25
if (init == 1)
26
{
27
    hole.x += x - xprevious;
28
    hole.y += y - yprevious;
29
    hole.image_alpha = image_alpha;
30
    hole.image_blend = image_blend;
31
}
32
remx = xprevious;
33
remy = yprevious;