Undertale script viewer

← back to main script listing

gml_Object_blt_dummymissle_Draw_0

(view raw script w/o annotations or w/e)
1
if (normal == 1)
2
{
3
    draw_sprite_ext(sprite_index, image_index, x, y, 1, 1, image_angle, c_white, 1);
4
    draw_sprite_ext(spr_dummymissle_sh, image_index, x, y, 1, 1, image_angle, c_white, 1);
5
}
6
if (create < 6)
7
{
8
    draw_sprite_ext(spr_dummymissle_shot, 6 - create, x, y, 1, 1, image_angle, c_white, 1);
9
    create += 1;
10
    if (create >= 6)
11
        normal = 1;
12
}
13
if (destroy >= 1)
14
{
15
    x += (random(2) - random(2));
16
    y += (random(2) - random(2));
17
    if (destroy >= 2)
18
    {
19
        image_xscale += 0.25;
20
        image_yscale += 0.25;
21
    }
22
    draw_sprite_ext(spr_dummymissle_shot, destroy - 1, x, y, image_xscale, image_yscale, image_angle, c_white, image_alpha);
23
    destroy += 1;
24
    if (destroy >= 8)
25
        instance_destroy();
26
}