Undertale script viewer

← back to main script listing

gml_Object_obj_migospel_body_Draw_0

(view raw script w/o annotations or w/e)
1
if (pause == 0)
2
{
3
    if (sad == 0)
4
    {
5
        siner += 1;
6
        timer += 1;
7
        timer_e += 1;
8
        bodyy = floor(sin(siner / 6) * 2);
9
    }
10
    else
11
    {
12
        timer = 0;
13
        timer_e = 0;
14
        bodyy = 0;
15
        eyey = -20;
16
        siner += 0.2;
17
        mouth_index += 0.25;
18
    }
19
}
20
else
21
{
22
    siner = 0;
23
    eyey = 0;
24
    simer = 0;
25
    timer_e = 0;
26
    bodyy = 0;
27
    mouth_index = 0;
28
}
29
draw_sprite_ext(spr_migospel_wingA, 0, x + (sin(siner / 4) * 2), y + 6 + 52 + (sin(siner / 4) * 2), 2, 2, 0, c_white, image_alpha);
30
draw_sprite_ext(spr_migospel_wingA, 0, (x + 52) - (sin(siner / 4) * 2), y + 6 + 52 + (sin(siner / 4) * 2), -2, 2, 0, c_white, image_alpha);
31
draw_sprite_ext(spr_migospel_wingB, 0, x + (sin(siner / 4) * 2), (y + 16 + 56) - (sin(siner / 4) * 2), 2, 2, 0, c_white, image_alpha);
32
draw_sprite_ext(spr_migospel_wingB, 0, (x + 52) - (sin(siner / 4) * 2), (y + 16 + 56) - (sin(siner / 4) * 2), -2, 2, 0, c_white, image_alpha);
33
draw_sprite_ext(spr_migospel_leg, 0, x, y + 100, 2, 2, 0, c_white, image_alpha);
34
draw_sprite_ext(spr_migospel_leg, 0, x + 50, y + 100, -2, 2, 0, c_white, image_alpha);
35
draw_sprite_ext(spr_migospel_body, 0, x, y + bodyy, 2, 2, 0, c_white, image_alpha);
36
if (pause == 0)
37
{
38
    if (sad == 0)
39
        draw_sprite_ext(spr_migospel_eye, eyey, x + 6, floor(y + 50 + bodyy + eyey), 2, 2, 0, c_white, image_alpha);
40
    if (sad == 1)
41
        draw_sprite_ext(spr_migospel_eye, mouth_index, x + 6, floor(y + 50 + bodyy + eyey), 2, 2, 0, c_white, image_alpha);
42
    if (sad == 0)
43
        draw_sprite_ext(spr_migospel_mouthA, floor(mouth_index), x + 8, y + 66 + bodyy, 2, 2, 0, c_white, image_alpha);
44
    if (sad == 1)
45
        draw_sprite_ext(spr_migospel_mouthB, 0, x + 8, y + 66 + bodyy, 2, 2, 0, c_white, image_alpha);
46
}
47
if (pause == 1)
48
{
49
    draw_sprite_ext(spr_migospel_eyeB, eyey, x + 6, floor(y + 50 + bodyy + eyey), 2, 2, 0, c_white, image_alpha);
50
    draw_sprite_ext(spr_migospel_mouthC, 0, x + 8, y + 66 + bodyy, 2, 2, 0, c_white, image_alpha);
51
}
52
if (timer >= 40 && timer <= 50)
53
    mouth_index += 0.5;
54
if (timer == 51)
55
{
56
    timer = 0;
57
    mouth_index = 0;
58
}
59
if (sad == 0)
60
{
61
    if (timer_e > 90 && timer_e <= 110)
62
        eyey -= 0.8;
63
    if (timer_e > 150 && timer_e <= 170)
64
        eyey += 0.8;
65
    if (timer_e == 180)
66
        timer_e = 0;
67
}