Undertale script viewer

← back to main script listing

gml_Object_obj_flowey_friendscene_Draw_0

(view raw script w/o annotations or w/e)
1
if (laugh == 0)
2
{
3
    if (neut == 0)
4
        draw_sprite_ext(sprite_index, image_index, x, y, 2, 2, 0, c_white, image_alpha);
5
    if (neut == 1)
6
        draw_sprite_ext(sprite_index, image_index, x, y, 2, 2, 0, c_white, image_alpha);
7
    if (drawface == 1)
8
        draw_sprite_ext(spr_floweyface_end, global.faceemotion, x, y, 2, 2, 0, c_white, image_alpha);
9
    if (con == 0 && image_index >= 8)
10
    {
11
        image_speed = 0;
12
        drawface = 1;
13
    }
14
    if (con == 6)
15
    {
16
        if (neut == 0)
17
            sprite_index = spr_flowey_riseanim;
18
        if (neut == 1)
19
            sprite_index = spr_flowey_riseanim2;
20
        drawface = 0;
21
        image_speed = -0.5;
22
        if (image_index < 1)
23
        {
24
            if (spec == 0)
25
            {
26
                y += 80;
27
                x += 180;
28
            }
29
            if (spec == 1)
30
                x = 100;
31
            if (spec == 2)
32
            {
33
                y = ystart + 40;
34
                x = xstart + 110;
35
            }
36
            con = 0;
37
            image_speed = 0.5;
38
        }
39
    }
40
}
41
if (laugh == 1)
42
{
43
    li += 1;
44
    draw_sprite_ext(spr_floweylaugh, floor(li / 2), x, y, 2, 2, 0, c_white, image_alpha);
45
}
46
if (laugh == 2)
47
{
48
    li += 1;
49
    draw_sprite_ext(spr_floweylaugh, 0, x, y, 2, 2, 0, c_white, image_alpha);
50
}