@Override
    public void tick(LinkedList<GameObject> object) {
        if (currentHP <= 0) {
            t.setDuration(0); // Stops timed event
            Event.enemyKilled(type);
            handler.removeObject(this);
        }

        x += velX;
        y += velY;
        if (falling || jumping) {
            velY += gravity;

            if (velY > MAX_SPEED) {
                velY = MAX_SPEED;
            }
        }
        updateRate();
        updateBitPosition();
        Collision(object);
    }