Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_box_hit_bullet_Draw_0

(view raw script w/o annotations or w/e)
1
if (sprite_index == spr_gerson_chevron)
2
    image_angle = direction + 180;
3
draw_self();
4
if (sprite_index == spr_gerson_chevron)
5
{
6
    if (direction == 0)
7
    {
8
        draw_sprite_ext(sprite_index, image_index, x - 5 - (timer / 4), y, image_xscale, image_yscale, direction + 180, image_blend, image_alpha);
9
        draw_sprite_ext(sprite_index, image_index, x - 10 - (timer / 2), y, image_xscale, image_yscale, direction + 180, image_blend, image_alpha);
10
    }
11
    if (direction == 180)
12
    {
13
        draw_sprite_ext(sprite_index, image_index, x + 5 + (timer / 4), y, image_xscale, image_yscale, direction + 180, image_blend, image_alpha);
14
        draw_sprite_ext(sprite_index, image_index, x + 10 + (timer / 2), y, image_xscale, image_yscale, direction + 180, image_blend, image_alpha);
15
    }
16
}