Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_rouxls_facehands_Draw_73

(view raw script w/o annotations or w/e)
1
if (global.chapter == 3)
2
{
3
    if (room == room_board_2)
4
    {
5
        if (con == 1)
6
        {
7
            rhx = 132;
8
            rhy = 142;
9
            rspr = 1;
10
            con = 2;
11
        }
12
        if (con == 2)
13
        {
14
            rhx = lerp(rhx, 130, 0.25);
15
            rhy = lerp(rhy, 84, 0.25);
16
        }
17
        if (con == 3)
18
        {
19
            rhx = lerp(rhx, 124, 0.25);
20
            rhy = lerp(rhy, 44, 0.25);
21
        }
22
        if (con == 10)
23
        {
24
            rhx = 82;
25
            rhy = 90;
26
            rspr = 5;
27
            con = 11;
28
        }
29
        if (con == 11)
30
            rhy = lerp(rhy, 106, 0.25);
31
        if (con == 15)
32
        {
33
            rhx = 140;
34
            rhy = 84;
35
            rspr = 7;
36
            lhx = 24;
37
            lhy = 84;
38
            lspr = 6;
39
        }
40
        if (con == 20)
41
        {
42
            rhx = lerp(rhx, 120, 0.25);
43
            lhx = lerp(lhx, 44, 0.25);
44
            rhy = lerp(rhy, 94, 0.25);
45
            lhy = lerp(lhy, 94, 0.25);
46
        }
47
        if (con == 25)
48
        {
49
            lhx = 999;
50
            rhx = 82;
51
            rhy = 94;
52
            rspr = 5;
53
        }
54
        if (con == 30)
55
            rhy = lerp(rhy, 114, 0.25);
56
        if (con == 35)
57
        {
58
            lhx = 68;
59
            lhy = 114;
60
            lspr = 0;
61
            rhx = 92;
62
            rspr = 4;
63
            con = 36;
64
        }
65
        if (con == 36)
66
        {
67
            rhx = lerp(rhx, 130, 0.25);
68
            rhy = lerp(rhy, 84, 0.25);
69
            lhx = lerp(lhx, 38, 0.25);
70
            lhy = lerp(lhy, 84, 0.25);
71
        }
72
        if (con == 40)
73
        {
74
            lspr = 2;
75
            rhx = lerp(rhx, 136, 0.25);
76
            rhy = lerp(rhy, 74, 0.25);
77
            lhx = lerp(lhx, 32, 0.25);
78
            lhy = lerp(lhy, 74, 0.25);
79
        }
80
        if (con == 45)
81
        {
82
            lspr = 6;
83
            rspr = 7;
84
            rhx = lerp(rhx, 148, 0.25);
85
            rhy = lerp(rhy, 94, 0.25);
86
            lhx = lerp(lhx, 20, 0.25);
87
            lhy = lerp(lhy, 94, 0.25);
88
        }
89
        if (con == 50)
90
        {
91
            timer++;
92
            rhx = lerp(rhx, 104, 0.25);
93
            rhy = lerp(rhy, 104, 0.25);
94
            lhx = lerp(lhx, 64, 0.25);
95
            lhy = lerp(lhy, 104, 0.25);
96
            if (timer == 6)
97
            {
98
                con = 51;
99
                timer = 0;
100
            }
101
        }
102
        if (con == 51)
103
        {
104
            lhx = 999;
105
            rhx = 82;
106
            rhy = 106;
107
            rspr = 5;
108
        }
109
        if (con == 55)
110
        {
111
            lhx = 999;
112
            rhx = 999;
113
        }
114
        if (con == 60)
115
        {
116
            rhx = 82;
117
            rhy = 106;
118
            rspr = 5;
119
            con = 61;
120
        }
121
        if (con == 70)
122
            rhy = lerp(rhy, 116, 0.25);
123
        if (con == 80)
124
            instance_destroy();
125
    }
126
}
127
if (i_ex(obj_face) && global.fc == 18)
128
{
129
    var _left = 44;
130
    var _top = 22;
131
    var _width = 200;
132
    var _height = 126;
133
    if (!surface_exists(clip_surface))
134
        clip_surface = surface_create(_width, _height);
135
    surface_set_target(clip_surface);
136
    draw_clear_alpha(c_black, 0);
137
    draw_sprite_ext(spr_rouxls_facehands, rspr, 
scr_even
scr_even

function
scr_even(arg0)
{ return round(arg0 / 2) * 2; }
(rhx) - _left,
scr_even
scr_even

function
scr_even(arg0)
{ return round(arg0 / 2) * 2; }
(rhy) - _top, 2, 2, 0, c_white, 1);
138
    draw_sprite_ext(spr_rouxls_facehands, lspr, 
scr_even
scr_even

function
scr_even(arg0)
{ return round(arg0 / 2) * 2; }
(lhx) - _left,
scr_even
scr_even

function
scr_even(arg0)
{ return round(arg0 / 2) * 2; }
(lhy) - _top, 2, 2, 0, c_white, 1);
139
    surface_reset_target();
140
    draw_surface(clip_surface, _left, _top);
141
}