Undertale script viewer

← back to main script listing

gml_Object_obj_papdate_Draw_0

(view raw script w/o annotations or w/e)
1
if (global.facechoice == 3)
2
    draw_sprite_ext(sprite_index, image_index, x, y, 2, 2, 0, c_white, 1);
3
if (global.faceemotion == 0)
4
    face = spr_papyrushead_normal;
5
if (global.faceemotion == 1)
6
    face = spr_papyrushead_mad;
7
if (global.faceemotion == 2)
8
    face = spr_papyrushead_blush;
9
if (global.faceemotion == 3)
10
    face = spr_papyrushead_side;
11
if (global.faceemotion == 4)
12
    face = spr_papyrushead_sweaty;
13
if (global.faceemotion == 5)
14
    face = spr_papyrushead_sad;
15
if (global.faceemotion == 6)
16
    face = spr_papyrushead_hurt;
17
if (global.faceemotion == 7)
18
    face = spr_papyrushead_confident;
19
if (global.faceemotion == 8)
20
    face = spr_papyrushead_sly;
21
if (global.faceemotion == 9)
22
    face = spr_papyrushead_anime;
23
if (global.facechoice == 0)
24
    sprite_index = spr_papdate;
25
if (global.facechoice == 1)
26
    sprite_index = spr_papdate_cool;
27
if (global.facechoice == 2)
28
    sprite_index = spr_papdate_coy;
29
if (global.facechoice == 3)
30
    sprite_index = spr_papdate_omg;
31
if (global.facechoice == 4)
32
    sprite_index = spr_papdate_bookread;
33
if (global.facechoice == 5)
34
    sprite_index = spr_papdate_bookhold;
35
draw_sprite_ext(face, face_index, x + 40, y - 2, 2, 2, 0, c_white, 1);
36
face_index += face_speed;
37
if (global.facechoice != 3)
38
    draw_sprite_ext(sprite_index, image_index, x, y, 2, 2, 0, c_white, 1);
39
if (instance_exists(OBJ_WRITER))
40
{
41
    if (OBJ_WRITER.halt == 0)
42
    {
43
        face_speed = 0.25;
44
    }
45
    else
46
    {
47
        face_index = 0;
48
        face_speed = 0;
49
    }
50
}
51
else
52
{
53
    face_index = 0;
54
    face_speed = 0;
55
}
56
if (global.faceemotion == 8)
57
    face_speed = 0.13;
58
draw_set_color(c_white);
59
if (global.facechoice == 1)
60
{
61
    draw_sprite_ext(spr_papdate_spaghetti, present, x, y - 16, 2, 2, 0, c_white, 1);
62
    draw_sprite_ext(spr_papdate_coolhat, image_index, x, (y + haty) - 16, 2, 2, 0, c_white, 1);
63
}
64
if (choicer == 1)
65
{
66
    if (choice == 0)
67
        draw_sprite(spr_heart, 0, global.idealborder[0] + 40, global.idealborder[2] + 60);
68
    if (choice == 1)
69
        draw_sprite(spr_heart, 0, global.idealborder[0] + 300, global.idealborder[2] + 60);
70
    if (keyboard_check_pressed(vk_right) || keyboard_check_pressed(vk_left))
71
    {
72
        if (choice == 0)
73
            choice = 1;
74
        else
75
            choice = 0;
76
        snd_play(snd_squeak);
77
    }
78
    if (control_check_pressed(0))
79
        choicer = 2;
80
}