Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_moveheart_Create_0

(view raw script w/o annotations or w/e)
1
burst = 0;
2
shift = 1;
3
image_alpha = 0;
4
flytime = 8;
5
if (instance_exists(obj_heartmarker))
6
{
7
    distx = obj_heartmarker.x;
8
    disty = obj_heartmarker.y;
9
}
10
else if (!instance_exists(obj_growtangle))
11
{
12
    distx = __view_get(e__VW.XView, 0) + 310;
13
    disty = __view_get(e__VW.YView, 0) + 160;
14
}
15
else
16
{
17
    distx = obj_growtangle.x - 10;
18
    disty = obj_growtangle.y - 10;
19
}
20
dist = point_distance(x, y, distx, disty);
21
move_towards_point(distx, disty, dist / flytime);
22
alarm[0]
 = flytime;
gml_Object_obj_moveheart_Alarm_0.gml

x = distx; y = disty; if (!i_ex(obj_heart)) instance_create(x, y, obj_heart); instance_destroy();
23
image_speed = 0;
24
instance_create(x, y, obj_heartburst);
25
26
enum e__VW
27
{
28
    XView,
29
    YView,
30
    WView,
31
    HView,
32
    Angle,
33
    HBorder,
34
    VBorder,
35
    HSpeed,
36
    VSpeed,
37
    Object,
38
    Visible,
39
    XPort,
40
    YPort,
41
    WPort,
42
    HPort,
43
    Camera,
44
    SurfaceID
45
}