Undertale script viewer

← back to main script listing

gml_Object_obj_friendlypellet_Step_0

(view raw script w/o annotations or w/e)
1
if (attackyou == 1)
2
{
3
    attackratio += 1;
4
    move_towards_point(obj_fakeheart.x, obj_fakeheart.y, (0.1 * attackratio * attackratio * attackratio) + random(0.5));
5
    direction += (random(4) - random(2));
6
    depth = -500;
7
    attackyou = 2;
8
    friction = -0.04 * attackratio;
9
}
10
if (attackyou == 3)
11
    instance_destroy();