Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_o_bq_whitefade_Step_0

(view raw script w/o annotations or w/e)
1
if (state == 0)
2
{
3
    image_alpha += 0.03;
4
    if (image_alpha > 1.2)
5
    {
6
        image_alpha = 2;
7
        state = 1;
8
        o_boxingqueen.x = o_boxingqueen.basex;
9
        o_boxingqueen.y = o_boxingqueen.basey;
10
        if (instance_exists(obj_bq_baseball_final_hits_boss))
11
        {
12
            snd_play(snd_explosion);
13
            with (obj_bq_baseball_final_hits_boss)
14
                instance_destroy();
15
            __view_set(e__VW.YView, 0, 0);
16
            o_boxingqueen.sprite_index = spr_bqueen;
17
            o_boxingqueen.image_index = 26;
18
        }
19
    }
20
}
21
if (state == 1 && dont_fade_out == 0)
22
{
23
    image_alpha -= 0.02;
24
    if (image_alpha < 0)
25
        instance_destroy();
26
}
27
28
enum e__VW
29
{
30
    XView,
31
    YView,
32
    WView,
33
    HView,
34
    Angle,
35
    HBorder,
36
    VBorder,
37
    HSpeed,
38
    VSpeed,
39
    Object,
40
    Visible,
41
    XPort,
42
    YPort,
43
    WPort,
44
    HPort,
45
    Camera,
46
    SurfaceID
47
}