Deltarune script viewer

← back to main script listing

gml_Object_obj_moveheart_ch1_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_ch1))
6
{
7
    distx = obj_heartmarker_ch1.x;
8
    disty = obj_heartmarker_ch1.y;
9
}
10
else
11
{
12
    distx = __view_get(e__VW.XView, 0) + 310;
13
    disty = __view_get(e__VW.YView, 0) + 160;
14
}
15
dist = point_distance(x, y, distx, disty);
16
move_towards_point(distx, disty, dist / flytime);
17
alarm[0] = flytime;
gml_Object_obj_moveheart_ch1_Alarm_0.gml

x = distx; y = disty; instance_create_ch1(x, y, obj_heart_ch1); instance_destroy();
18
image_speed = 0;
19
instance_create_ch1(x, y, obj_heartburst_ch1);
20
21
enum e__VW
22
{
23
    XView,
24
    YView,
25
    WView,
26
    HView,
27
    Angle,
28
    HBorder,
29
    VBorder,
30
    HSpeed,
31
    VSpeed,
32
    Object,
33
    Visible,
34
    XPort,
35
    YPort,
36
    WPort,
37
    HPort,
38
    Camera,
39
    SurfaceID
40
}