Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_socialmedia_avatar_Draw_0

(view raw script w/o annotations or w/e)
1
if (sprite_index == spr_q_socialface_queen || sprite_index == spr_q_socialface_queen_laugh)
2
{
3
    index_timer += 0.25;
4
    if (index_timer >= 2)
5
        index_timer = 0;
6
    if (sprite_index == spr_q_socialface_queen_laugh)
7
    {
8
        if (index_timer < 1)
9
            draw_sprite_ext(sprite_index, 0, x, y, 1, 1, 0, c_aqua, 1);
10
        if (index_timer >= 1)
11
            draw_sprite_ext(sprite_index, 1, x, y, 1, 1, 0, c_aqua, 1);
12
    }
13
    else
14
    {
15
        if (index_timer < 1)
16
            draw_sprite_ext(sprite_index, 0, x, y, 1, 1, 0, c_aqua, 1);
17
        if (index_timer >= 1)
18
            draw_sprite_ext(sprite_index, 1, x, y, 1, 1, 0, c_aqua, 1);
19
    }
20
}
21
else
22
{
23
    index_timer += 0.25;
24
    if (index_timer >= 2)
25
        index_timer = 0;
26
    if (sprite_index == spr_queen_pfps)
27
    {
28
        if (index_timer < 1)
29
            draw_sprite(spr_queen_pfps, chosen_face, x, y);
30
        if (index_timer >= 1)
31
            draw_sprite(spr_queen_pfps_mouth_open, chosen_face, x, y);
32
    }
33
    if (sprite_index == spr_queen_pfps_mad)
34
    {
35
        if (index_timer < 1)
36
            draw_sprite(spr_queen_pfps_mad, chosen_face, x, y);
37
        if (index_timer >= 1)
38
            draw_sprite(spr_queen_pfps_mad_mouth_open, chosen_face, x, y);
39
    }
40
}