Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_queen_wineflass_pushin_Step_0

(view raw script w/o annotations or w/e)
1
image_angle = obj_queen_wineglass.image_angle;
2
image_xscale = obj_queen_wineglass.image_xscale;
3
image_yscale = obj_queen_wineglass.image_yscale;
4
x = obj_queen_wineglass.x;
5
y = obj_queen_wineglass.y;
6
if (instance_exists(obj_heart))
7
{
8
    repeat (10)
9
    {
10
        if (!place_meeting(x, y, obj_heart))
11
        {
12
            obj_heart.x += lengthdir_x(1, point_direction(obj_heart.x, obj_heart.y, obj_queen_wineglass.x, obj_queen_wineglass.y));
13
            obj_heart.y += lengthdir_y(1, point_direction(obj_heart.x, obj_heart.y, obj_queen_wineglass.x, obj_queen_wineglass.y));
14
        }
15
    }
16
}