Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_heart_initiate_battle_2_Step_0

(view raw script w/o annotations or w/e)
1
if (distance_to_point(point_x2, point_y2) < move_speed)
2
{
3
    x = point_x2;
4
    y = point_y2;
5
}
6
if (x == point_x2 && y == point_y2 && no_loop == false)
7
{
8
    alarm[0] = 2;
gml_Object_obj_heart_initiate_battle_2_Alarm_0.gml

instance_destroy(); room_goto(rm_battle Battle room); scr_battle_save();
9
    no_loop = true;
10
}
11
if (no_loop == false)
12
{
13
    x += lengthdir_x(move_speed, angle);
14
    y += lengthdir_y(move_speed, angle);
15
}