Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_rotating_sprite_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 = o_boxingcontroller.depth + 1;
8
    image_blend = c_gray;
9
}
10
else
11
{
12
    depth = o_boxingcontroller.depth - 1;
13
    image_blend = c_white;
14
}
15
if (x != (o_boxingcontroller.x + 38) && y != (o_boxingcontroller.y - 96))
16
{
17
    var path_pos = path_position;
18
    path_end();
19
    x = o_boxingcontroller.x + 38;
20
    y = o_boxingcontroller.y - 96;
21
    path = path_add();
22
    path_set_kind(path, 1);
23
    path_set_closed(path, true);
24
    path_add_point(path, 368, 160, 100);
25
    path_add_point(path, 304, 184, 100);
26
    path_add_point(path, 272, 184, 100);
27
    path_add_point(path, 208, 160, 100);
28
    path_add_point(path, 272, 136, 100);
29
    path_add_point(path, 304, 136, 100);
30
    path_start(path, 4, path_action_continue, false);
31
    path_position = path_pos;
32
}