if (battle_active) { with (obj_heart) { x = other.x - 10; y = other.y - 10; canmove = false; } }