twinblade-infinity/objects/obj_enemy_buzzsaw/Step_2.gml

19 lines
320 B
Plaintext
Raw Normal View History

if hp < 1
{
score += 200;
instance_destroy();
}
if (point_distance(x,y,obj_player_control.x,obj_player_control.y) < 32)
{
speed = 0;
if global.shield < 1
{
global.player_hp -= 7;
}
exit;
}
move_towards_point(obj_player_control.x,obj_player_control.y,6);