Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_rotationController_track_Draw_0

(view raw script w/o annotations or w/e)
1
draw_self();
2
if (rotate == true)
3
{
4
    image_index = 0;
5
    if (left == true)
6
        draw_sprite_ext(spr_rotationController_directions, 0, x + 6, y + 20, 2, 2, 0, c_white, 1);
7
    if (right == true)
8
        draw_sprite_ext(spr_rotationController_directions, 2, x + 6, y + 20, 2, 2, 0, c_white, 1);
9
    if (down == true)
10
        draw_sprite_ext(spr_rotationController_directions, 1, x + 6, y + 20, 2, 2, 0, c_white, 1);
11
}
12
else
13
{
14
    image_index = 1;
15
}