Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_shutta_car_outoftree_Step_0

(view raw script w/o annotations or w/e)
1
image_index += 1;
2
var peekoutspeed = 4;
3
var waittime = 4;
4
if ((side == 1 && x > destinationx) || (side == -1 && x < destinationx))
5
    instance_destroy();
6
if (side == 1)
7
{
8
    if (con == 0)
9
    {
10
        if (image_xscale < 1.4)
11
            image_xscale += 0.2;
12
    }
13
    if (con == 1)
14
    {
15
        if (image_xscale > 0)
16
            image_xscale -= 0.2;
17
    }
18
}
19
if (side == -1)
20
{
21
    if (con == 0)
22
    {
23
        if (image_xscale > -1.4)
24
            image_xscale -= 0.2;
25
    }
26
    if (con == 1)
27
    {
28
        if (image_xscale < 0)
29
            image_xscale += 0.2;
30
    }
31
}