Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_arrow_tornado_controller_Step_0

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