Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_lw_raindrop_Step_0

(view raw script w/o annotations or w/e)
1
if (!init)
2
{
3
    if (hspeed > 0)
4
        maxx += xbuffer;
5
    else
6
        minx += -xbuffer;
7
    init = true;
8
}
9
if ((y - cameray()) >= 280)
10
    instance_destroy();
11
else if (x >= (camerax() + maxx))
12
    x -= (320 + xbuffer);
13
else if (x <= (camerax() + minx))
14
    x += (320 + xbuffer);