Deltarune script viewer

← back to main script listing

gml_Object_obj_wordbullet_Draw_0

(view raw script w/o annotations or w/e)
1
if (y < (cameray() + 290))
2
    depth = obj_heart.depth - 1;
3
if (y > (cameray() + 290))
4
    depth = obj_heart.depth + 100.5;
5
if (init == 0)
6
{
7
    init = 1;
8
    if (queenword == 1)
9
        idealxscale = 2;
10
    if (angry && queenword == 0)
11
    {
12
        wordchoice = "";
13
        repeat (4)
14
            wordchoice += choose(stringsetloc(
?
"?", "obj_wordbullet_slash_Draw_0_gml_15_0"
), stringsetloc(
@
"@", "obj_wordbullet_slash_Draw_0_gml_15_1"
), stringsetloc(
!
"!", "obj_wordbullet_slash_Draw_0_gml_15_2"
), stringsetloc(
*
"*", "obj_wordbullet_slash_Draw_0_gml_15_3"
), stringsetloc(

"&", "obj_wordbullet_slash_Draw_0_gml_15_4"
));
15
        idealxscale = 1.5;
16
        idealyscale = 1.5;
17
        image_xscale = 0.8;
18
        image_yscale = 0.8;
19
    }
20
}
21
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");
22
if (queenword == 0)
23
{
24
    draw_set_color(c_white);
25
    if (angry)
26
        draw_set_color(c_red);
27
    if (gray)
28
        draw_set_color(c_gray);
29
    if (timer > 5 && timer <= 11)
30
        scaleupx = lerp(0, idealxscale, (timer - 5) / 6);
31
    if (angry == 1 || x < obj_growtangle.x)
32
        scaleupx = idealxscale;
33
    draw_text_transformed(x, y, wordchoice, scaleupx, idealyscale, image_angle);
34
    if (global.lang == "ja")
35
        draw_text_transformed(x + 1, y, wordchoice, scaleupx, idealyscale, image_angle);
36
    timer++;
37
    if (timer >= 90)
38
        instance_destroy();
39
}
40
if (queenword)
41
{
42
    draw_set_color(c_red);
43
    draw_set_alpha(image_alpha);
44
    if (x <= (obj_growtangle.x - 30))
45
        dramatimer_x -= 2;
46
    if (x <= (obj_growtangle.x - 30))
47
        dramatimer_y -= 1;
48
    draw_text_transformed(x + dramatimer_x, y + dramatimer_y, wordchoice, idealxscale, idealyscale, image_angle);
49
    draw_set_alpha(1);
50
    if (x <= (obj_growtangle.x - 30))
51
    {
52
        active = 0;
53
        hspeed = 0;
54
        image_alpha -= 0.05;
55
        idealxscale += 0.1;
56
        idealyscale += 0.1;
57
        if (image_alpha <= 0)
58
        {
59
            with (obj_socialmedia_avatar)
60
                angrycon = 2;
61
            with (obj_wordbullet)
62
                instance_destroy();
63
        }
64
    }
65
}