Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_growtangle_electric_pushin_Step_0

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