Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_susiezilla_laser_building_Step_0

(view raw script w/o annotations or w/e)
1
if (con == 0)
2
{
3
    image_index += 0.5;
4
    if (image_index > 4.75)
5
    {
6
        sprite_index = spr_laser_building;
7
        image_index = 0;
8
        image_speed = 0;
9
        con = 1;
10
    }
11
}
12
if (con == 1)
13
{
14
    timer++;
15
    if (timer == 18)
16
        eyeflashtimer = 11;
17
    if (timer == 31)
18
    {
19
        if (image_xscale < 0)
20
        {
21
            lsr = instance_create(x - 26, y + 72, obj_susiezilla_laser_building_bullet);
22
            lsr.depth = depth - 1;
23
            lsr.image_angle = 0;
24
            lsr.hspeed = 8;
25
            lsr.height = 30;
26
            lsr.friction = -2;
27
        }
28
        else
29
        {
30
            lsr = instance_create(x + 26, y + 72, obj_susiezilla_laser_building_bullet);
31
            lsr.depth = depth - 1;
32
            lsr.hspeed = -8;
33
            lsr.friction = -2;
34
            lsr.height = 30;
35
        }
36
        timer = 0;
37
    }
38
}
39
if (con == 2)
40
{
41
    timer++;
42
    if (timer == 12)
43
    {
44
        con = 1;
45
        timer = 0;
46
        sprite_index = spr_laser_building;
47
    }
48
}