Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_rotationtile_tower_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
    puzSwitch.x += x - xprevious;
28
    puzSwitch.y += y - yprevious;
29
    puzSwitch.image_alpha = image_alpha;
30
    puzSwitch.image_blend = image_blend;
31
    puzSwitch.depth = depth - 1;
32
    hole.x += x - xprevious;
33
    hole.y += y - yprevious;
34
    hole.image_alpha = image_alpha;
35
    hole.image_blend = image_blend;
36
}
37
remx = xprevious;
38
remy = yprevious;
39
mouseKiller.x = x - 5;
40
mouseKiller.y = y - 5;