Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_shutta_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 = camerax() + 460;
3
y = (cameray() + 252) - (index * 12) - _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 if (!i_ex(obj_shutta_photo_controller) || (i_ex(obj_shutta_photo_controller) && obj_shutta_photo_controller.state == "outro"))
20
{
21
    instance_destroy();
22
}
23
scr_84_set_draw_font
scr_84_set_draw_font

function
scr_84_set_draw_font(arg0)
{ global.chemg_font = arg0; draw_set_font(
scr_84_get_font(arg0));
}
("main");
24
draw_set_halign(fa_right);
25
draw_set_valign(fa_top);
26
draw_set_alpha(image_alpha);
27
draw_set_color(c_black);
28
draw_text_transformed(x - 1, y, text, image_xscale, image_yscale, image_angle);
29
draw_text_transformed(x + 1, y, text, image_xscale, image_yscale, image_angle);
30
draw_text_transformed(x, y - 1, text, image_xscale, image_yscale, image_angle);
31
draw_text_transformed(x, y + 1, text, image_xscale, image_yscale, image_angle);
32
draw_set_color(color);
33
draw_text_transformed(x, y, text, image_xscale, image_yscale, image_angle);
34
draw_set_alpha(1);
35
draw_set_halign(fa_left);