Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_shootout_text_Draw_0

(view raw script w/o annotations or w/e)
1
var _yoffset = ease_out_back(clamp(image_alpha, 0, 1), 0, 20, 1);
2
x = xstart;
3
y = ystart - _yoffset;
4
if (con == 0)
5
{
6
    timer--;
7
    if (timer <= 0)
8
    {
9
        timer = 0;
10
        con = 1;
11
    }
12
}
13
else if (con == 1)
14
{
15
    image_alpha += 0.1;
16
    if (image_alpha >= 2)
17
        con = 2;
18
}
19
else
20
{
21
    image_alpha -= 0.1;
22
    if (image_alpha <= 0)
23
        instance_destroy();
24
}
25
draw_set_font(fnt_main);
26
draw_set_halign(fa_center);
27
draw_set_valign(fa_top);
28
draw_set_color(color);
29
draw_set_alpha(image_alpha);
30
draw_text_transformed_outline(x, y, text, 2, 2);
31
draw_set_alpha(1);
32
draw_set_color(c_white);
33
draw_set_halign(fa_left);