Undertale script viewer

← back to main script listing

gml_Object_obj_floweyx_oldflamethrower_Step_0

(view raw script w/o annotations or w/e)
1
if (y > 190 && con == 0)
2
{
3
    con = 1;
4
    vspeed = 0;
5
    yanchor = y;
6
    xanchor = x;
7
    anchor = 1;
8
}
9
if (con == 1 && image_xscale < 1)
10
    image_xscale += 0.05;
11
image_angle = point_direction(x, y, obj_vsflowey_heart.x + 8, obj_vsflowey_heart.y + 8);
12
if (side == 0)
13
{
14
    if (image_angle > 312)
15
        image_angle = 312;
16
    if (image_angle < 260)
17
        image_angle = 260;
18
}
19
if (side == 1)
20
{
21
    if (image_angle < 225)
22
        image_angle = 225;
23
    if (image_angle > 280)
24
        image_angle = 280;
25
}
26
if (con == 3)
27
{
28
    vspeed = -5;
29
    alarm[0] = -1;
gml_Object_obj_floweyx_oldflamethrower_Alarm_0.gml

if (num < 6) { 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; alarm[0] = 3; num += 1; } else { alarm[0] = 50; num = 0; }
30
    if (image_xscale > 0.1)
31
        image_xscale -= 0.1;
32
    if (y <= 150)
33
        instance_destroy();
34
}