Undertale script viewer

← back to main script listing

gml_Object_obj_spiderbullet_Step_0

(view raw script w/o annotations or w/e)
1
if (instance_exists(obj_purpleheart))
2
{
3
    op = obj_purpleheart;
4
    if (hspeed > 0 && x > (op.xmid + (op.xlen * 2)))
5
        instance_destroy();
6
    if (hspeed < 0 && x < (op.xmid - (op.xlen * 2)))
7
        instance_destroy();
8
}
9
else
10
{
11
    instance_destroy();
12
}