Undertale script viewer

← back to main script listing

gml_Object_obj_melontooth_Step_0

(view raw script w/o annotations or w/e)
1
direction = point_direction(x, y, obj_heart.x + 8, obj_heart.y + 8);
2
image_angle = direction;
3
if (ystart < (obj_heart.y + 8))
4
{
5
    image_angle += (((x - obj_heart.x) + 8) / 1.5);
6
    overall += 1;
7
}
8
if (ystart > (obj_heart.y + 8))
9
{
10
    image_angle -= (((x - obj_heart.x) + 8) / 1.5);
11
    overall -= 1;
12
}
13
direction = image_angle;
14
siner += 1;
15
x = xstart + lengthdir_x(sin(siner / 2) * 4, direction);
16
y = ystart + lengthdir_y(sin(siner / 2) * 2, direction) + (sin(overall / 4) * 6);