Undertale script viewer

← back to main script listing

gml_Object_obj_venus_pl_Step_0

(view raw script w/o annotations or w/e)
1
if (con == 1)
2
    con = 2;
3
if (con == 2)
4
{
5
    image_speed = 0.25;
6
    con = 1.5;
7
    alarm[4] = 8;
8
    if (image_index >= 2)
9
        con = 3;
10
}
11
if (con == 2.5)
12
{
13
    caster_loop(snd_buzzing, 0.8, 0.8);
14
    alarm[2] = 1;
gml_Object_obj_venus_pl_Alarm_2.gml

side = choose(0, 1, 2); if (sider == 0) { if (side == 0) { ff = instance_create(100 + random(400), 200, obj_floweyfly); ff.parent = id; with (ff) move_towards_point(parent.x + 65, parent.y + 115, 11); } if (side == 1) { ff = instance_create(680, 200 + random(300), obj_floweyfly); ff.parent = id; with (ff) move_towards_point(parent.x + 65, parent.y + 115, 11); } if (side == 2) { ff = instance_create(100 + random(700), 500, obj_floweyfly); ff.parent = id; with (ff) move_towards_point(parent.x + 65, parent.y + 115, 11); } } if (sider == 1) { if (side == 0) { ff = instance_create(100 + random(400), 200, obj_floweyfly); ff.parent = id; with (ff) move_towards_point(parent.x - 65, parent.y + 115, 11); } if (side == 1) { ff = instance_create(-30, 200 + random(300), obj_floweyfly); ff.parent = id; with (ff) move_towards_point(parent.x - 65, parent.y + 115, 11); } if (side == 2) { ff = instance_create(-100 + random(660), 500, obj_floweyfly); ff.parent = id; with (ff) move_towards_point(parent.x - 65, parent.y + 115, 11); } } amt += 1; alarm[2] = 2; if (amt > 35) { alarm[2] = -1; wait = 0; con = 5; }
15
    con = 4;
16
}
17
if (con == 5)
18
{
19
    if (instance_exists(obj_floweyfly) == 0)
20
    {
21
        caster_stop(snd_buzzing);
22
        alarm[4] = 8;
23
        con = 6;
24
    }
25
}
26
if (con == 7)
27
{
28
    image_index = 0;
29
    image_speed = 0;
30
    instance_destroy();
31
}