Undertale script viewer

← back to main script listing

gml_Object_obj_blackboxtest_Step_0

(view raw script w/o annotations or w/e)
1
image_angle += 10;
2
if (image_alpha < 1)
3
    image_alpha += 0.1;
4
if (y > global.idealborder[3] && vspeed > 0)
5
{
6
    image_alpha -= 0.2;
7
    if (image_alpha < 0.1)
8
        instance_destroy();
9
}
10
if (collision_rectangle(x - 10, y - 10, x + 10, y + 10, obj_heartshot, 0, 1))
11
    event_user(0);