Deltarune script viewer

← back to main script listing

gml_Object_o_boxing_wheel_Step_0

(view raw script w/o annotations or w/e)
1
if (x > (o_boxingcontroller.basex - 120) && x < (o_boxingcontroller.basex + 120) && speedup == 0 && o_boxingqueen.firstwheelattack == 0)
2
{
3
    speedup = 2;
4
    hspeed *= 1.4;
5
}
6
if (x > (o_boxingcontroller.basex - 120) && x < (o_boxingcontroller.basex + 120) && playsound == 0 && o_boxingcontroller.wireframe_boxing == 0)
7
{
8
    playsound = 1;
9
    if (o_boxingqueen.wheelsoundtimer < 1)
10
    {
11
        if (o_boxingcontroller.wireframe_boxing == 1)
12
        {
13
            snd_play(motor_swing_down_bc);
14
            snd_play(motor_swing_down_bc);
15
            snd_volume(motor_swing_down_bc, 2, 0);
16
        }
17
        else
18
        {
19
            snd_play(motor_swing_down);
20
            snd_play(motor_swing_down);
21
            snd_volume(motor_swing_down, 2, 0);
22
        }
23
    }
24
    o_boxingqueen.wheelsoundtimer = 7;
25
}
26
image_angle += rotspeed;
27
if (i_ex(wheel_hitbox))
28
{
29
    wheel_hitbox.x = x;
30
    wheel_hitbox.y = y;
31
}
32
if (i_ex(wheel_hitbox_graze))
33
{
34
    wheel_hitbox_graze.x = x - 15;
35
    wheel_hitbox_graze.y = y;
36
}
37
if (x >= 1000 || x <= -300)
38
{
39
    with (wheel_hitbox)
40
        instance_destroy();
41
    with (wheel_hitbox_graze)
42
        instance_destroy();
43
    instance_destroy();
44
}