Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_fpellets_fake_martlet_Step_0

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
var soul = obj_heart_battle_fighting_parent
4
if (image_alpha < 1 && fade_in == true)
5
    image_alpha += 0.2
6
if (bbox_right < 0 || bbox_left > room_width || bbox_bottom < 0 || bbox_top > room_height)
7
    instance_destroy()
8
x = soul.x + (lengthdir_x(len, dir))
9
y = soul.y + (lengthdir_y(len, dir))