Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_ch3_GSC05_susiezilla_tutorial_Draw_0

(view raw script w/o annotations or w/e)
1
var xx = camerax();
2
var yy = cameray() - 40;
3
if (init == 0)
4
{
5
    tenna = instance_create(xx + (camerawidth() / 2), yy - 100, obj_actor_tenna);
6
    tenna.auto_depth = 0;
7
    tenna.wobblestate = 1;
8
    tenna.golden_mode = 1;
9
    tenna.preset = -1;
10
    tenna.depth = depth - 1;
11
    tenna.sprite_index = spr_tenna_point_at_screen;
12
    susie = 
scr_dark_marker
scr_dark_marker

function
scr_dark_marker(arg0, arg1, arg2)
{ thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { sprite_index = arg2; image_speed = 0; image_xscale = 2; image_yscale = 2; } return thismarker; }
(xx - 80, yy - 100, spr_susiezilla_susie_idle);
13
    susie.depth = depth - 1;
14
    shadowguy = 
scr_dark_marker
scr_dark_marker

function
scr_dark_marker(arg0, arg1, arg2)
{ thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { sprite_index = arg2; image_speed = 0; image_xscale = 2; image_yscale = 2; } return thismarker; }
(xx + 194, yy - 100, spr_susiezilla_shadowguy);
15
    shadowguy.depth = depth - 2;
16
    ralsei = 
scr_dark_marker
scr_dark_marker

function
scr_dark_marker(arg0, arg1, arg2)
{ thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { sprite_index = arg2; image_speed = 0; image_xscale = 2; image_yscale = 2; } return thismarker; }
(xx + 700, yy + 100, spr_susiezilla_krisandralsei);
17
    
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar; } function scr_lerpvar_respect() { if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true; return ___lerpvar; }
("bgalpha", 0, 1, 15);
18
    con = 1;
19
    bgcon = 1;
20
    init = 1;
21
}
22
bgtimer++;
23
draw_sprite_tiled_ext(spr_dw_tv_starbgtile, bgtimer * 0.5, camerax(), yy + bgtimer, 2, 2, c_white, bgalpha);
24
if (con == 1)
25
{
26
    timer++;
27
    if (timer == 1)
28
    {
29
        tenna.depth = depth - 1;
30
        tenna.sprite_index = spr_tenna_point_at_screen;
31
        tenna.wobblestate = 1;
32
        tenna.wobbletime = 4;
33
        tenna.wobbleamt = 8;
34
        with (tenna)
35
            
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar; } function scr_lerpvar_respect() { if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true; return ___lerpvar; }
("y", y, yy + 290, 15, -1, "out");
36
    }
37
    if (timer == 16)
38
    {
39
        timer = 0;
40
        con = 2;
41
    }
42
}
43
if (con == 2)
44
{
45
    if (advance == 1)
46
    {
47
        con++;
48
        advance = 0;
49
    }
50
}
51
if (con == 3)
52
{
53
    timer++;
54
    if (timer == 1)
55
    {
56
        with (tenna)
57
            
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar; } function scr_lerpvar_respect() { if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true; return ___lerpvar; }
("x", x, xx + 414, 15, 2, "out");
58
        with (shadowguy)
59
            
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar; } function scr_lerpvar_respect() { if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true; return ___lerpvar; }
("y", y, yy + 304, 15, -1, "out");
60
    }
61
    if (timer == 15)
62
    {
63
        timer = 0;
64
        con++;
65
        readytocontinue = 0;
66
    }
67
}
68
if (con == 4)
69
{
70
    timer++;
71
    if (advance == 1)
72
        readytocontinue = 1;
73
    if (timer == 1)
74
    {
75
        shadowguy.sprite_index = spr_susiezilla_shadowguy_spin;
76
        shadowguy.image_speed = 0.5;
77
        with (shadowguy)
78
            
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar; } function scr_lerpvar_respect() { if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true; return ___lerpvar; }
("x", xx + 194, xx + 420, 12, 2, "out");
79
    }
80
    if (timer == 7)
81
    {
82
        with (tenna)
83
        {
84
            
scr_shakeobj_ext
scr_shakeobj_ext

function
scr_shakeobj_ext()
{ var _shakeobj = instance_create(x, y, obj_shakeobj_ext); _shakeobj.target = id; if (argument_count >= 1) { if (i_ex(argument0)) _shakeobj.target = argument0; } if (argument_count >= 2) { if (argument1 != -1) _shakeobj.shakexamt = argument1; } if (argument_count >= 3) { if (argument2 != -1) _shakeobj.shakeyamt = argument2; } if (argument_count >= 4) { if (argument3 != -1) _shakeobj.shakereduct = argument3; } if (argument_count >= 5) { if (argument4 != -1) _shakeobj.shakespeed = argument4; } with (_shakeobj) event_user(0); }
(id, 16, 0, 2, 1);
85
            sprite_index = choose(spr_tenna_hurt, spr_tenna_grasp, spr_tenna_desperate);
86
            if (round(random(30)) == 0)
87
                sprite_index = spr_tenna_spray;
88
            bounce = 1;
89
        }
90
        with (shadowguy)
91
        {
92
            snd_play_x(snd_damage, 0.5, 1);
93
            var impactfx = instance_create(x, y - 40, obj_animation);
94
            impactfx.sprite_index = spr_attack_slap2;
95
            impactfx.image_xscale = 2;
96
            impactfx.image_yscale = 2;
97
            impactfx.depth = depth - 20;
98
            impactfx.image_speed = 0.5;
99
        }
100
    }
101
    if (timer == 9)
102
    {
103
        shadowguy.image_speed = 0.5;
104
        with (shadowguy)
105
            
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar; } function scr_lerpvar_respect() { if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true; return ___lerpvar; }
("x", xx + 380, xx + 194, 16, -1, "out");
106
    }
107
    if (timer == 17)
108
    {
109
        shadowguy.image_speed = 0;
110
        shadowguy.image_index = 0;
111
        shadowguy.sprite_index = spr_susiezilla_shadowguy;
112
    }
113
    if (timer == 29)
114
        timer = 0;
115
    if (timer >= 17)
116
    {
117
        if (readytocontinue == 1)
118
        {
119
            timer = 0;
120
            con = 5;
121
            readytocontinue = 0;
122
            advance = 0;
123
        }
124
    }
125
}
126
if (con == 5)
127
{
128
    timer++;
129
    if (timer == 1)
130
    {
131
        susie.depth = depth - 1;
132
        susie.x = xx - 80;
133
        susie.y = yy + 244;
134
        susie.sprite_index = spr_susiezilla_susie_spin;
135
        susie.image_speed = 0.5;
136
        with (susie)
137
            
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar; } function scr_lerpvar_respect() { if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true; return ___lerpvar; }
("x", x, xx + 220, 24, 3, "out");
138
    }
139
    if (timer == 8)
140
    {
141
        shadowguy.sprite_index = spr_susiezilla_shadowguy_wave;
142
        shadowguy.image_speed = 0.125;
143
        shadowguy.image_index = 11;
144
        shadowguy.gravity = -1;
145
        shadowguy.hspeed = 12;
146
        shadowguy.friction = 0.1;
147
        with (shadowguy)
148
        {
149
            snd_play_x(snd_punchmed_bc, 0.7, 0.8);
150
            var impactfx = instance_create(x, y - 40, obj_animation);
151
            impactfx.sprite_index = spr_attack_slap2;
152
            impactfx.image_xscale = 2;
153
            impactfx.image_yscale = 2;
154
            impactfx.depth = depth - 20;
155
            impactfx.image_speed = 0.5;
156
        }
157
        with (tenna)
158
        {
159
            bounce = 1;
160
            sprite_index = spr_tenna_pose;
161
        }
162
    }
163
    if (timer == 18)
164
    {
165
        susie.sprite_index = spr_susiezilla_susie_afterspin;
166
        susie.image_speed = 0.125;
167
    }
168
    if (timer == 30)
169
    {
170
        susie.sprite_index = spr_susiezilla_susie_idle;
171
        timer = -1;
172
        con = 6;
173
    }
174
}
175
if (con == 6)
176
{
177
    if (advance == 1)
178
    {
179
        con = 7;
180
        advance = 0;
181
    }
182
}
183
if (con == 7)
184
{
185
    timer++;
186
    if (timer > 1 && advance)
187
        readytocontinue = 1;
188
    var ballx = (xx + 220) - 20;
189
    if (timer == 0)
190
    {
191
        susie.sprite_index = spr_susiezilla_susie_idle;
192
        susie.image_speed = 0.125;
193
        susie.x = xx + 220;
194
        susie.y = yy + 244;
195
        tenna.x = xx + 414;
196
        tenna.y = yy + 308;
197
        with (susie)
198
            
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar; } function scr_lerpvar_respect() { if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true; return ___lerpvar; }
("x", x, xx + 142, 8, -1, "out");
199
        with (tenna)
200
            
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar; } function scr_lerpvar_respect() { if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true; return ___lerpvar; }
("x", x, xx + 466, 8, -1, "out");
201
    }
202
    if (timer == 1)
203
    {
204
        ball1 = 
scr_dark_marker
scr_dark_marker

function
scr_dark_marker(arg0, arg1, arg2)
{ thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { sprite_index = arg2; image_speed = 0; image_xscale = 2; image_yscale = 2; } return thismarker; }
(ballx, yy - 80, spr_tennis_ball_bullet);
205
        ball1.depth = depth - 1;
206
        ball1.gravity = 1;
207
    }
208
    if (timer == 26)
209
    {
210
        if (i_ex(ball1))
211
        {
212
            ball1.vspeed = -4;
213
            ball1.hspeed = -4;
214
            ball1.friction = 0.1;
215
            
scr_doom
scr_doom

function
scr_doom(arg0, arg1)
{ with (instance_create_depth(0, 0, 0, obj_doom)) { alarm[0] target = arg0; } }
(ball1, 80);
216
            susiehiteffect = 1;
217
        }
218
        with (tenna)
219
        {
220
            sprite_index = spr_tenna_laugh;
221
            image_speed = 0.5;
222
        }
223
    }
224
    if (timer > 40 && (timer % 3) == 0)
225
    {
226
        ball = 
scr_dark_marker
scr_dark_marker

function
scr_dark_marker(arg0, arg1, arg2)
{ thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { sprite_index = arg2; image_speed = 0; image_xscale = 2; image_yscale = 2; } return thismarker; }
(xx + 320 + irandom_range(-20, 20), (yy - 80) + irandom_range(-10, 10), spr_tennis_ball_bullet);
227
        ball.depth = depth - 10;
228
        with (ball)
229
        {
230
            
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar; } function scr_lerpvar_respect() { if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true; return ___lerpvar; }
("x", x, xx + 494, 8);
231
            
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar; } function scr_lerpvar_respect() { if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true; return ___lerpvar; }
("y", y, 132, 8);
232
            scr_delay_var("vspeed", -4 + random_range(2, -2), 8);
233
            scr_delay_var("hspeed", random_range(-8, -2), 8);
234
            scr_delay_var("gravity", 1, 9);
235
            
scr_doom
scr_doom

function
scr_doom(arg0, arg1)
{ with (instance_create_depth(0, 0, 0, obj_doom)) { alarm[0] target = arg0; } }
(id, 900);
236
        }
237
        scr_delay_var("tennahiteffect", 1, 8);
238
    }
239
    if (timer > 24 && timer < 48)
240
    {
241
        var acceptablestring = stringsetloc(
OK
"OK", "obj_ch3_GSC05_susiezilla_tutorial_slash_Draw_0_gml_269_0"
);
242
        draw_set_font(fnt_mainbig);
243
        draw_text_transformed_color(xx + 260, yy + 100, acceptablestring, 2, 2, 0, c_green, c_green, c_yellow, c_yellow, 1);
244
    }
245
    if (timer >= 48)
246
    {
247
        with (susie)
248
            sprite_index = spr_susiezilla_susie_laugh;
249
        var acceptablestring = stringsetloc(
BAD
"BAD", "obj_ch3_GSC05_susiezilla_tutorial_slash_Draw_0_gml_276_0"
);
250
        draw_set_font(fnt_mainbig);
251
        draw_text_transformed_color(xx + 260, yy + 100, acceptablestring, 2, 2, 0, c_red, c_red, c_orange, c_orange, 1);
252
    }
253
    if (timer > 64)
254
    {
255
        if (readytocontinue)
256
        {
257
            con = 8;
258
            con9loop = 0;
259
            timer = 0;
260
            advance = 0;
261
            readytocontinue = 0;
262
        }
263
    }
264
    if (timer >= 70)
265
        timer = 0;
266
    with (obj_marker)
267
    {
268
        if (sprite_index == spr_tennis_ball_bullet)
269
        {
270
            if (y > 340)
271
                image_alpha *= 0.5;
272
            if (y > 480)
273
                instance_destroy();
274
        }
275
    }
276
}
277
if (con == 8 || con == 9)
278
{
279
    var nextpart = 0;
280
    timer++;
281
    if (timer == 10)
282
    {
283
        with (susie)
284
            sprite_index = spr_susiezilla_susie_shocked;
285
        with (tenna)
286
            sprite_index = spr_tenna_point_up_twofingers;
287
        with (ralsei)
288
        {
289
            image_index = 2;
290
            image_speed = 0;
291
            sprite_index = spr_susiezilla_krisandralsei_tug;
292
            
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar; } function scr_lerpvar_respect() { if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true; return ___lerpvar; }
("x", xx + 700, xx + 320, 40, -1, "out");
293
        }
294
        ralsei.depth = depth - 1;
295
    }
296
    if (timer == 42)
297
    {
298
        if (readytocontinue)
299
            nextpart = 1;
300
    }
301
    if (timer == 54)
302
    {
303
        snd_play_x(snd_wing, 0.8, 1.2);
304
        with (ralsei)
305
        {
306
            
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar; } function scr_lerpvar_respect() { if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true; return ___lerpvar; }
("x", xx + 320, xx + 280, 16, 2, "out");
307
            image_index = 0;
308
        }
309
        with (susie)
310
        {
311
            
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar; } function scr_lerpvar_respect() { if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true; return ___lerpvar; }
("x", x, xx + 80, 24, -1, "out");
312
            sprite_index = spr_susiezilla_susie_spin;
313
            image_speed = 0.25;
314
        }
315
    }
316
    if (timer == 70)
317
    {
318
        with (susie)
319
            sprite_index = spr_susiezilla_susie_dizzy;
320
        if (readytocontinue)
321
            nextpart = 1;
322
    }
323
    if (timer == 88)
324
    {
325
        snd_play_x(snd_wing, 0.8, 1.2);
326
        with (ralsei)
327
        {
328
            
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar; } function scr_lerpvar_respect() { if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true; return ___lerpvar; }
("x", x, xx + 320, 16, 2, "out");
329
            image_index = 2;
330
        }
331
        with (susie)
332
        {
333
            
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar; } function scr_lerpvar_respect() { if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true; return ___lerpvar; }
("x", x, xx + 220, 24, -1, "out");
334
            sprite_index = spr_susiezilla_susie_spin;
335
            image_speed = 0.25;
336
        }
337
    }
338
    if (timer == 104)
339
    {
340
        with (susie)
341
            sprite_index = spr_susiezilla_susie_dizzy;
342
        timer = 40;
343
        if (con == 9)
344
        {
345
            con9loop++;
346
            if (con9loop >= 3)
347
            {
348
                if (round(random(5)) == 0)
349
                    con9loop = 3;
350
                else
351
                    con9loop = 0;
352
            }
353
            tenna.bounce = 1;
354
            if (con9loop == 0)
355
                tenna.sprite_index = spr_tenna_point_left;
356
            if (con9loop == 1)
357
                tenna.sprite_index = spr_tenna_laugh;
358
            if (con9loop == 2)
359
                tenna.sprite_index = spr_tenna_hurt;
360
            if (con9loop == 3)
361
                tenna.sprite_index = spr_tenna_tie_adjust_a;
362
        }
363
    }
364
    if (con == 9)
365
    {
366
        if (con9loop == 0)
367
            draw_sprite_ext(spr_susiezilla_house, 0, xx + 170, yy + 280, 2, 2, 0, c_white, 1);
368
        if (con9loop == 1)
369
            draw_sprite_ext(spr_susiezilla_shadowguy_idle, timer / 4, xx + 190, yy + 310, 2, 2, 0, c_white, 1);
370
        if (con9loop == 2)
371
            draw_sprite_ext(spr_tenna_dance_cabbage_small, timer, xx + 170, yy + 240, 1, 1, 0, c_yellow, 1);
372
        if (con9loop == 3)
373
            draw_sprite_ext(spr_pipis_egg, 0, xx + 180, yy + 300, 2, 2, 0, c_white, 1);
374
        if (con9loop == 3)
375
        {
376
            if (round(random(2)) == 0)
377
                con9loop = choose(0, 1, 2);
378
        }
379
        if (timer == 58 || timer == 92)
380
        {
381
            var anim = instance_create(xx + 190, yy + 290, obj_animation);
382
            anim.sprite_index = spr_realisticexplosion;
383
            snd_play_x(snd_explosion_mmx, 0.5, 1.5);
384
        }
385
    }
386
    if (advance && timer > 4)
387
        readytocontinue = 1;
388
    if (nextpart)
389
    {
390
        if (con == 8)
391
        {
392
            con = 9;
393
            readytocontinue = 0;
394
        }
395
        else if (con == 9)
396
        {
397
            con = 10;
398
            readytocontinue = 0;
399
            timer = 0;
400
        }
401
        advance = 0;
402
    }
403
}
404
if (con == 10)
405
{
406
    timer++;
407
    if (timer == 1)
408
    {
409
        with (susie)
410
        {
411
            speed = 0;
412
            gravity = 0;
413
            sprite_index = spr_susiezilla_susie_prepare;
414
            
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar; } function scr_lerpvar_respect() { if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true; return ___lerpvar; }
("x", x, xx + 100, 20, -1, "out");
415
            
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar; } function scr_lerpvar_respect() { if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true; return ___lerpvar; }
("y", y, yy + 60, 20, -1, "out");
416
        }
417
        with (ralsei)
418
        {
419
            sprite_index = spr_susiezilla_krisandralsei_tug;
420
            image_index = 2;
421
            depth = 499;
422
        }
423
        with (tenna)
424
        {
425
            
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar; } function scr_lerpvar_respect() { if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true; return ___lerpvar; }
("x", x, xx + 320, 20, -1, "out");
426
            
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar; } function scr_lerpvar_respect() { if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true; return ___lerpvar; }
("y", y, yy + 360, 20, -1, "out");
427
            sprite_index = spr_tenna_point_at_screen;
428
            bounce = 1;
429
        }
430
    }
431
    if (timer == 30)
432
    {
433
        with (susie)
434
        {
435
            hspeed = -10;
436
            gravity_direction = 0;
437
            gravity = 2;
438
            sprite_index = spr_susiezilla_susie_spin;
439
            image_speed = 0.5;
440
        }
441
    }
442
    if (timer == 35)
443
    {
444
        with (ralsei)
445
            sprite_index = spr_susiezilla_kris_tug;
446
        ralseimarker = 
scr_dark_marker
scr_dark_marker

function
scr_dark_marker(arg0, arg1, arg2)
{ thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { sprite_index = arg2; image_speed = 0; image_xscale = 2; image_yscale = 2; } return thismarker; }
(ralsei.x - 45, ralsei.y - 45, spr_ralsei_shocked_left);
447
        hitralsei = 0;
448
    }
449
    if (timer >= 36)
450
    {
451
        if (susie.x > (ralseimarker.x - 20) && hitralsei == 0)
452
        {
453
            hitralsei = 1;
454
            var impactfx = instance_create(ralseimarker.x + 30, ralseimarker.y + 40, obj_animation);
455
            impactfx.sprite_index = spr_attack_slap2;
456
            impactfx.image_xscale = 2;
457
            impactfx.image_yscale = 2;
458
            impactfx.depth = -300;
459
            impactfx.image_speed = 0.5;
460
            with (ralseimarker)
461
            {
462
                vspeed = -24;
463
                gravity = 1;
464
            }
465
            snd_play_x(snd_car_doorslam, 0.5, 0.9 + random(0.2));
466
        }
467
    }
468
    if (timer == 60)
469
    {
470
        ralseimarker.sprite_index = spr_ralsei_splat;
471
        ralseimarker.x = ralseimarker.xstart + 20;
472
    }
473
    if (timer >= 60)
474
    {
475
        if (ralseimarker.y > ralseimarker.ystart)
476
        {
477
            ralseimarker.speed = 0;
478
            ralseimarker.gravity = 0;
479
            ralseimarker.y = ralseimarker.ystart;
480
            snd_play(snd_splat);
481
        }
482
    }
483
    if (timer == 270)
484
    {
485
        with (ralseimarker)
486
            
scr_shakeobj
scr_shakeobj

function
scr_shakeobj()
{ var _shakeobj = instance_create(x, y, obj_shakeobj); _shakeobj.target = id; if (argument_count >= 1) { if (i_ex(argument0)) _shakeobj.target = argument0; } if (argument_count >= 2) { if (argument1 != -1) _shakeobj.shakeamt = argument1; } if (argument_count >= 3) { if (argument2 != -1) _shakeobj.shakereduct = argument2; } with (_shakeobj) event_user(0); }
();
487
    }
488
    if (timer == 330)
489
    {
490
        with (ralseimarker)
491
            
scr_shakeobj
scr_shakeobj

function
scr_shakeobj()
{ var _shakeobj = instance_create(x, y, obj_shakeobj); _shakeobj.target = id; if (argument_count >= 1) { if (i_ex(argument0)) _shakeobj.target = argument0; } if (argument_count >= 2) { if (argument1 != -1) _shakeobj.shakeamt = argument1; } if (argument_count >= 3) { if (argument2 != -1) _shakeobj.shakereduct = argument2; } with (_shakeobj) event_user(0); }
();
492
    }
493
    if (timer == 390)
494
    {
495
        with (ralseimarker)
496
        {
497
            sprite_index = spr_ralsei_pose;
498
            y = yy;
499
            
scr_shakeobj
scr_shakeobj

function
scr_shakeobj()
{ var _shakeobj = instance_create(x, y, obj_shakeobj); _shakeobj.target = id; if (argument_count >= 1) { if (i_ex(argument0)) _shakeobj.target = argument0; } if (argument_count >= 2) { if (argument1 != -1) _shakeobj.shakeamt = argument1; } if (argument_count >= 3) { if (argument2 != -1) _shakeobj.shakereduct = argument2; } with (_shakeobj) event_user(0); }
();
500
        }
501
    }
502
    if (timer >= 37)
503
        readytocontinue = 1;
504
    if (advance && readytocontinue)
505
    {
506
        advance = 0;
507
        con = 11;
508
        timer = 0;
509
    }
510
}
511
if (con == 11)
512
{
513
    timer++;
514
    if (timer == 1)
515
    {
516
        with (susie)
517
        {
518
            gravity = 0;
519
            speed = 0;
520
        }
521
        with (ralseimarker)
522
        {
523
            gravity = 0;
524
            speed = 0;
525
        }
526
        with (susie)
527
            
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar; } function scr_lerpvar_respect() { if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true; return ___lerpvar; }
("y", y, yy - 100, 12, 2, "out");
528
        with (tenna)
529
            
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar; } function scr_lerpvar_respect() { if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true; return ___lerpvar; }
("y", y, yy - 100, 12, 2, "out");
530
        with (ralsei)
531
            
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar; } function scr_lerpvar_respect() { if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true; return ___lerpvar; }
("y", y, yy - 100, 12, 2, "out");
532
        with (ralseimarker)
533
            
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar; } function scr_lerpvar_respect() { if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true; return ___lerpvar; }
("y", y, yy - 100, 12, 2, "out");
534
    }
535
    if (timer == 15)
536
        
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar; } function scr_lerpvar_respect() { if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true; return ___lerpvar; }
("bgalpha", 1, 0, 15);
537
    if (timer == 30)
538
    {
539
        with (ralseimarker)
540
            instance_destroy();
541
        instance_destroy();
542
    }
543
}
544
if (susiehiteffect == 1)
545
{
546
    susiehiteffect = 0;
547
    with (susie)
548
    {
549
        snd_play_x(snd_bump, 0.5, 0.9 + random(0.2));
550
        sprite_index = spr_susiezilla_susie_dizzy;
551
        image_speed = 0.25;
552
        
scr_shakeobj
scr_shakeobj

function
scr_shakeobj()
{ var _shakeobj = instance_create(x, y, obj_shakeobj); _shakeobj.target = id; if (argument_count >= 1) { if (i_ex(argument0)) _shakeobj.target = argument0; } if (argument_count >= 2) { if (argument1 != -1) _shakeobj.shakeamt = argument1; } if (argument_count >= 3) { if (argument2 != -1) _shakeobj.shakereduct = argument2; } with (_shakeobj) event_user(0); }
();
553
        var impactfx = instance_create(x + 54, y, obj_animation);
554
        impactfx.sprite_index = spr_attack_slap2;
555
        impactfx.image_xscale = 1;
556
        impactfx.image_yscale = 1;
557
        impactfx.depth = depth - 20;
558
        impactfx.image_speed = 0.5;
559
    }
560
}
561
if (tennahiteffect == 1)
562
{
563
    tennahiteffect = 0;
564
    tenna.bounce = 1;
565
    with (tenna)
566
    {
567
        snd_play_x(snd_damage, 0.5, 0.9 + random(0.2));
568
        sprite_index = choose(spr_tenna_grasp, spr_tenna_hurt);
569
        var impactfx = instance_create(x + 20 + random(8), (y - 180) + random(8), obj_animation);
570
        impactfx.sprite_index = spr_attack_slap2;
571
        impactfx.image_xscale = 2;
572
        impactfx.image_yscale = 2;
573
        impactfx.depth = depth - 20;
574
        impactfx.image_speed = 0.5;
575
    }
576
}
577
draw_set_color(c_maroon);
578
if (i_ex(susie))
579
    draw_line_width(susie.x + 35, susie.y + 25, susie.xprevious + 25, -90, 3);
580
if (i_ex(shadowguy))
581
    draw_line_width(shadowguy.x, shadowguy.y - 10, shadowguy.x, -90, 3);