Undertale script viewer

← back to main script listing

gml_Object_obj_floweyx_flame_Step_0

(view raw script w/o annotations or w/e)
1
image_angle = direction;
2
friction = 0.3;
3
if (hspeed > 0)
4
    hspeed -= 0.1;
5
if (hspeed < 0)
6
    hspeed += 0.1;
7
if ((obj_vsflowey_heart.x + 8) > x)
8
    hspeed += 0.1;
9
if ((obj_vsflowey_heart.y + 8) > y)
10
    vspeed += 0.1;
11
if ((obj_vsflowey_heart.y + 8) < y)
12
    vspeed -= 0.12;
13
if ((obj_vsflowey_heart.x + 8) < x)
14
    hspeed -= 0.1;
15
if (y > 380)
16
    hspeed *= 1.12;
17
image_xscale = size;
18
image_yscale = size;
19
if (image_index > 9 && rp < 2)
20
{
21
    image_index = 5;
22
    rp += 1;
23
}
24
if (image_index > 18)
25
{
26
    if (image_alpha > 0.8)
27
        image_alpha = 0.8;
28
    image_blend = merge_color(image_blend, c_aqua, 0.1);
29
    image_alpha -= 0.05;
30
    if (image_alpha <= 0.1)
31
        instance_destroy();
32
}
33
if (image_index >= 40)
34
    instance_destroy();