x += lengthdir_x(spd, direction)
y += lengthdir_y(spd, direction)
image_angle = direction

if (place_meeting(x, y, obj_player)){
	with (obj_camera) screen_shake(20, 20)
	obj_player.is_mercy = true
	obj_player.hp = approach(obj_player.hp, 0, 1)
	
	repeat (10) instance_create_layer(x, y, "Instances", obj_dust)
	instance_destroy()
}

if (place_meeting(x, y, obj_wall)) instance_destroy()
