Deltarune script viewer

← back to main script listing

gml_Object_obj_fx_speedlines_Draw_0

(view raw script w/o annotations or w/e)
1
if (offsetx || offsety)
2
{
3
    if (offsetx)
4
        xoff = x - camerax();
5
    if (offsety)
6
        yoff = y - cameray();
7
    offsetx = false;
8
    offsety = false;
9
}
10
if (flashframe)
11
    depth = -1000;
12
draw_sprite_ext(sprite_index, 0, camerax() + (camerawidth() / 2), cameray() + (cameraheight() / 2), flipB * 2, flipA * 2, image_angle, flashframe ? c_gray : c_white, 1);
13
draw_sprite_ext(sprite_index, 1, camerax() + (camerawidth() / 2), cameray() + (cameraheight() / 2), flipA * 2, flipB * 2, -image_angle, #8EAAEA, 1);
14
if (flipA == flipB)
15
{
16
    flipA *= -1;
17
}
18
else
19
{
20
    flipB *= -1;
21
    image_angle += 90;
22
}
23
if (flashframe)
24
    instance_destroy();