Undertale script viewer

← back to main script listing

gml_Object_obj_spearbullet_follow_Draw_0

(view raw script w/o annotations or w/e)
1
draw_sprite_ext(sprite_index, image_index, x, y, 1, 1, image_angle, c_white, image_alpha);
2
if (rotspeed == 0)
3
{
4
    xoff = lengthdir_x(25, direction);
5
    yoff = lengthdir_y(25, direction);
6
    draw_line(x - (xoff / 2), y - (yoff / 2), x + xoff, y + yoff);
7
}
8
if (global.turntimer < 1)
9
    instance_destroy();