Undertale script viewer

← back to main script listing

gml_Object_obj_handbullet_new_Other_10

(view raw script w/o annotations or w/e)
1
if (moved == 0)
2
{
3
    alarm[0] = -1;
gml_Object_obj_handbullet_new_Alarm_0.gml

if (image_alpha == 1) { c[cn] = instance_create(x + 30, y + 30, obj_genericfire); c[cn].image_xscale = 2; c[cn].image_yscale = 2; cn += 1; } alarm[0] = 4;
4
    for (i = 0; i < cn; i += 1)
5
    {
6
        with (c[i])
7
        {
8
            move_towards_point(obj_heart.x + 6, obj_heart.y + 6, 2);
9
            friction = -0.2;
10
        }
11
    }
12
    moved = 1;
13
}
14
image_alpha -= 0.2;
15
if (image_alpha < -0.4)
16
    instance_destroy();