Undertale script viewer

← back to main script listing

gml_Object_obj_floweyx_flamethrower_Step_0

(view raw script w/o annotations or w/e)
1
if (extend == 1)
2
{
3
    if (image_index < 8)
4
        image_index += 1;
5
}
6
if (extend == 2)
7
{
8
    if (image_index > 0)
9
        image_index -= 1;
10
}
11
if (y > 190 && con == 0)
12
{
13
    con = 1;
14
    vspeed = 0;
15
    yanchor = y;
16
    xanchor = x;
17
    anchor = 1;
18
}
19
if (done == 0)
20
{
21
    if (image_xscale < 1)
22
    {
23
        image_xscale += 0.1;
24
    }
25
    else
26
    {
27
        done = 1;
28
        con = 2;
29
        alarm[0] = 1;
gml_Object_obj_floweyx_flamethrower_Alarm_0.gml

if (num < 7) { if (side == 0 && on == 0) image_angle += 8; if (side == 1 && on == 0) image_angle -= 8; if (side == 0 && on == 1) image_angle -= 8; if (side == 1 && on == 1) image_angle += 8; xx = lengthdir_x(165, image_angle); yy = lengthdir_y(165, image_angle); fl = instance_create(x + xx, y + yy, obj_floweyx_flame); fl.direction = image_angle; fl.speed = 7; alarm[0] = 2; num += 1; } else { if (on == 0) on = 1; else on = 0; alarm[0] = 30; num = 0; }
30
        if (side == 1)
31
            alarm[0] = 25;
gml_Object_obj_floweyx_flamethrower_Alarm_0.gml

if (num < 7) { if (side == 0 && on == 0) image_angle += 8; if (side == 1 && on == 0) image_angle -= 8; if (side == 0 && on == 1) image_angle -= 8; if (side == 1 && on == 1) image_angle += 8; xx = lengthdir_x(165, image_angle); yy = lengthdir_y(165, image_angle); fl = instance_create(x + xx, y + yy, obj_floweyx_flame); fl.direction = image_angle; fl.speed = 7; alarm[0] = 2; num += 1; } else { if (on == 0) on = 1; else on = 0; alarm[0] = 30; num = 0; }
32
    }
33
}
34
if (con == 2)
35
{
36
    if (side == 0)
37
    {
38
    }
39
    if (side == 1)
40
    {
41
    }
42
}
43
if (con == 3)
44
{
45
    if (extend != 2)
46
        snd_play(snd_elecdoor_close);
47
    extend = 2;
48
    vspeed = -5;
49
    alarm[0] = -1;
gml_Object_obj_floweyx_flamethrower_Alarm_0.gml

if (num < 7) { if (side == 0 && on == 0) image_angle += 8; if (side == 1 && on == 0) image_angle -= 8; if (side == 0 && on == 1) image_angle -= 8; if (side == 1 && on == 1) image_angle += 8; xx = lengthdir_x(165, image_angle); yy = lengthdir_y(165, image_angle); fl = instance_create(x + xx, y + yy, obj_floweyx_flame); fl.direction = image_angle; fl.speed = 7; alarm[0] = 2; num += 1; } else { if (on == 0) on = 1; else on = 0; alarm[0] = 30; num = 0; }
50
    if (image_xscale > 0.1)
51
        image_xscale -= 0.1;
52
    if (y <= 150)
53
        instance_destroy();
54
}