Undertale script viewer

← back to main script listing

gml_Object_obj_strangeman_butterfly_Create_0

(view raw script w/o annotations or w/e)
1
king = obj_heart;
2
if (instance_exists(obj_strangeman_intro))
3
    king = obj_strangeman_intro;
4
if (instance_exists(obj_butterflyhead))
5
    king = obj_butterflyhead;
6
move_towards_point(king.x, king.y, 1);
7
alarm[0] = 10;
gml_Object_obj_strangeman_butterfly_Alarm_0.gml

if (instance_exists(king)) { move_towards_point(king.x, king.y, 1 + random(2)); direction += (random(20) - random(20)); alarm[0] = 15; } else { instance_destroy(); }
8
image_speed = 0.2;
9
siner = 0;
10
dmg = 9;