Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_sneo_throwtarget_Step_0

(view raw script w/o annotations or w/e)
1
if (growstate == 0 && image_xscale < 1)
2
    image_xscale += 0.08;
3
if (growstate == 1)
4
{
5
    image_xscale -= 0.08;
6
    if (image_xscale < 0)
7
        instance_destroy();
8
}
9
if (stopmoving == 0)
10
    siner += (0.07 + n);
11
path_speed = 4;
12
path_position = 0.25 + (sin(siner) / 8);
13
if (con == 5)
14
{
15
    if (x < (xstart + 40))
16
        x += 10;
17
    con = 6;
18
}
19
if (con == 6)
20
{
21
    if (x > xstart)
22
        x -= 2;
23
}
24
if (con == 7)
25
{
26
    if (x < (xstart + 40))
27
        x += 8;
28
    con = 6;
29
}