Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_gerson_gradient_telegraph_Draw_0

(view raw script w/o annotations or w/e)
1
if (side == "left")
2
{
3
    draw_sprite_ext(spr_whitegradientdown_40, 9, camerax() + 40, cameray(), 20, 1, -90, image_blend, image_alpha);
4
    image_alpha -= 0.1;
5
}
6
if (side == "right")
7
{
8
    draw_sprite_ext(spr_whitegradientdown_40, 9, (camerax() + camerawidth()) - 40, cameray() + cameraheight() + 40, 20, 1, 90, image_blend, image_alpha);
9
    image_alpha -= 0.1;
10
}
11
if (side == "up")
12
{
13
    draw_sprite_ext(spr_whitegradientdown_40, 9, camerax() + camerawidth(), cameray() + 40, 20, 1, 180, image_blend, image_alpha);
14
    image_alpha -= 0.1;
15
}
16
if (side == "down")
17
{
18
    depth = obj_battlecontroller.depth - 2;
19
    draw_sprite_ext(spr_whitegradientdown_40, 9, camerax(), (cameray() + cameraheight()) - 40, 20, 1, 0, image_blend, image_alpha);
20
    image_alpha -= 0.1;
21
}
22
if (image_alpha < 0)
23
    instance_destroy();