if (pdv <= 0) { instance_destroy(); show_debug_message("game overe"); // GAME OVER } else { pdv--; if (other.x > x) { x -= 10; } else if (other.x < x) { x += 10; } else if (other.y > y) { y -= 10; } else if (other.y < y) { y += 10; } }