Deltarune script viewer

← back to main script listing

gml_Object_obj_laserscythe_ch1_Step_0

(view raw script w/o annotations or w/e)
1
if (explode == 0)
2
{
3
    remx = x;
4
    remy = y;
5
    image_angle += rotspeed;
6
    remrot = image_angle;
7
}
8
if (y >= (room_height - 100) && explode == 0)
9
{
10
    audio_stop_sound(snd_scytheburst_ch1);
11
    snd_play_ch1(snd_scytheburst_ch1);
12
    remx = x;
13
    remy = y;
14
    explode = 1;
15
    explodetimer = 0;
16
    remrot = image_angle;
17
    image_angle = 0;
18
    speed = 0;
19
    gravity = 0;
20
    mask_index = spr_tallpx_ch1;
21
    sprite_index = spr_tallpx_ch1;
22
    grazed = 0;
23
    y = 0;
24
    depth += 1;
25
}
26
if (explode == 1)
27
{
28
    active = 0;
29
    image_xscale += 8;
30
    if (image_xscale >= 16)
31
        active = 1;
32
    if (image_xscale >= 32)
33
        explode = 2;
34
}
35
if (explode == 2)
36
{
37
    image_xscale -= 4;
38
    if (image_xscale <= 16)
39
    {
40
        image_alpha -= 0.25;
41
        active = 0;
42
    }
43
    if (image_xscale <= 0)
44
        instance_destroy();
45
}
46
if (grazed == 1)
47
{
48
    with (obj_dbulletcontroller_ch1)
49
        made += 0.2;
50
    grazed = 2;
51
}