Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_rotating_sprites_controller_Step_0

(view raw script w/o annotations or w/e)
1
if (state == 0 && o_boxingcontroller.dead == 1)
2
    state = 1;
3
if (state == 1)
4
{
5
    timer++;
6
    if (timer > (0 / f) && timer < (50 / f))
7
    {
8
        with (rotating_sprite_piece1)
9
            image_alpha -= 0.04;
10
        with (rotating_sprite_piece2)
11
            image_alpha -= 0.04;
12
        with (rotating_sprite_piece3)
13
            image_alpha -= 0.04;
14
        with (rotating_sprite_piece4)
15
            image_alpha -= 0.04;
16
        with (rotating_sprite_piece5)
17
            image_alpha -= 0.04;
18
        with (rotating_sprite_piece6)
19
            image_alpha -= 0.04;
20
    }
21
    if (timer > (50 / f))
22
    {
23
        instance_destroy();
24
        with (rotating_sprite_piece1)
25
            instance_destroy();
26
        with (rotating_sprite_piece2)
27
            instance_destroy();
28
        with (rotating_sprite_piece3)
29
            instance_destroy();
30
        with (rotating_sprite_piece4)
31
            instance_destroy();
32
        with (rotating_sprite_piece5)
33
            instance_destroy();
34
        with (rotating_sprite_piece6)
35
            instance_destroy();
36
    }
37
}