Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_susiezilla_collectible_text_Other_8

(view raw script w/o annotations or w/e)
1
if (init == 0)
2
    string_length(string(score_text) + "$");
3
if (con == 0)
4
{
5
    timer += 2;
6
    x = lerp(x, xstart + 30, timer / 60);
7
    if (timer == 60)
8
    {
9
        timer = 0;
10
        con = 1;
11
    }
12
}
13
else
14
{
15
    image_alpha -= 0.1;
16
}
17
if ((y + vspeed) > ystart)
18
{
19
    vspeed = 0;
20
    gravity = 0;
21
    y = ystart;
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_alpha(image_alpha);
25
draw_set_color(c_black);
26
draw_text_transformed(x - 1, y, "$" + string(score_text), image_xscale, image_yscale, image_angle);
27
draw_text_transformed(x, y - 1, "$" + string(score_text), image_xscale, image_yscale, image_angle);
28
draw_text_transformed(x + 1, y, "$" + string(score_text), image_xscale, image_yscale, image_angle);
29
draw_text_transformed(x, y + 1, "$" + string(score_text), image_xscale, image_yscale, image_angle);
30
if (color_change == 0)
31
{
32
    color_change = 1;
33
    draw_set_color(c_white);
34
}
35
else
36
{
37
    color_change = 0;
38
    draw_set_color(c_yellow);
39
}
40
draw_text_transformed(x, y, "$" + string(score_text), image_xscale, image_yscale, image_angle);
41
draw_set_color(c_white);
42
draw_set_alpha(1);