Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_o_boxing_wheel_Create_0

(view raw script w/o annotations or w/e)
1
if (!audio_is_playing(snd_chain_extend_bc) && o_boxingcontroller.wireframe_boxing == 1)
2
{
3
    snd_loop(snd_chain_extend_bc);
4
    snd_volume(snd_chain_extend_bc, 0.37, 0);
5
}
6
else if (!audio_is_playing(snd_chain_extend) && o_boxingcontroller.wireframe_boxing == 0)
7
{
8
    snd_loop(snd_chain_extend);
9
    snd_volume(snd_chain_extend, 0.42, 0);
10
}
11
f = 2;
12
speedup = 0;
13
grav = 0;
14
size = 0.85;
15
playsound = 0;
16
image_xscale = 2 * size;
17
image_yscale = 2 * size;
18
hspeed = 12 * f;
19
if (o_boxingcontroller.wireframe_boxing == 1)
20
    hspeed = 7 * f;
21
rotspeed = 20 * f;
22
wheel_hitbox = instance_create(x, y, o_boxing_hitbox);
23
with (wheel_hitbox)
24
{
25
    hit_ducking = 0;
26
    hit_dodging = 1;
27
    give_hurt = 30 / f;
28
    give_invincibility = 40 / f;
29
    timer = 300;
30
    damage = 25;
31
    grazed = 1;
32
    if (o_boxingcontroller.wireframe_boxing == 1)
33
    {
34
        image_xscale = 4;
35
        image_yscale = 7;
36
    }
37
}
38
wheel_hitbox.image_yscale = 8 * size;
39
wheel_hitbox.image_xscale = 14 * size;
40
wheel_hitbox_graze = instance_create(x - 25, y, o_boxing_hitbox);
41
with (wheel_hitbox_graze)
42
{
43
    timer = 300;
44
    graze_only = 1;
45
    if (o_boxingcontroller.wireframe_boxing == 1)
46
    {
47
        image_xscale = 5;
48
        image_yscale = 9;
49
    }
50
}
51
wheel_hitbox_graze.image_yscale = 9 * size;
52
wheel_hitbox_graze.image_xscale = 17 * size;