Undertale script viewer

← back to main script listing

gml_Object_obj_mouthbeam_Step_0

(view raw script w/o annotations or w/e)
1
x = (nowx + random(3)) - random(3);
2
y = (nowy + random(3)) - random(3);
3
if (factor == 1)
4
    visible = true;
5
factor += 1;
6
if (factor > 20)
7
{
8
    image_alpha -= 0.1;
9
    if (image_alpha < 0.2)
10
    {
11
        instance_destroy();
12
        obj_floweyx_flipeye.con = 6;
13
    }
14
}
15
if (instance_exists(obj_vsflowey_shaker))
16
    instance_create(0, 0, obj_vsflowey_shaker);