Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_arrow_tornado_arrow_Step_0

(view raw script w/o annotations or w/e)
1
if (image_xscale < 1)
2
    image_xscale += 0.1;
3
if (image_yscale < 1)
4
    image_yscale += 0.1;
5
if (path_position >= 0.5 && path_position < 0.84)
6
{
7
    depth = obj_hammer_of_justice_enemy.depth + 1;
8
    image_blend = c_gray;
9
}
10
else
11
{
12
    if (path_position >= 0.84)
13
        image_index = 0;
14
    depth = obj_hammer_of_justice_enemy.depth - 1;
15
    image_blend = c_white;
16
}
17
if (x != (obj_hammer_of_justice_enemy.x + 38) && y != (obj_hammer_of_justice_enemy.y - 96))
18
{
19
    var path_pos = path_position;
20
    path_end();
21
    x = obj_hammer_of_justice_enemy.x + 120;
22
    y = obj_hammer_of_justice_enemy.y + 70;
23
    path = path_add();
24
    path_set_kind(path, 1);
25
    path_set_closed(path, true);
26
    path_add_point(path, 408, 160, 100);
27
    path_add_point(path, 304, 184, 100);
28
    path_add_point(path, 272, 184, 100);
29
    path_add_point(path, 168, 160, 100);
30
    path_add_point(path, 272, 136, 100);
31
    path_add_point(path, 304, 136, 100);
32
    path_start(path, 4, path_action_continue, false);
33
    path_position = path_pos;
34
}
35
if (path_position >= 0.4 && path_position < 0.8)
36
{
37
}
38
else
39
{
40
}