title: LibGDX - Accelerometer Problems
body: <p>I got some issues. I'm using LibGDX.</p>
  
  <ol>
  <li><p>When I hit an object, my Fighter is supposed to fall to the Ground. BUT, because of the Accelerometer, i can still move it up and down eventhough it died. The Scroller on the x-Axis though stops.
  <strong>Question: (FIXED)</strong> How can i make the Accelerometer stop, after Ive been hit, and make the Fighter accelerate to the ground (in absence of the accelerometer, all by itself) ?</p></li>
  <li><p>When I move the Fighter up and down, the transition from "moving up" to "moving down" isnt smooth. It seems like it laggs.
  <strong>Question:</strong> How can I Increase the Sensitivity of my Accelerometer?</p></li>
  <li><p>Also, When I tilt the Phone further, the velocity stay the same.
  <strong>Question:</strong> How can i increase the velocity, in relation to the tilt degree ?</p></li>
  </ol>
  
  <p>Thank You !</p>
  
  <p>The Codes are Below:</p>
  
  <p><strong>Accelerometer Code:</strong></p>
  
  <pre><code>       float accelY = Gdx.input.getAccelerometerY();
  
  
  
        if (Gdx.input.getAccelerometerY() &lt; 5){
           velocity.y = -40;
        }
  
  
        if (Gdx.input.getAccelerometerY() &gt; 5){
           velocity.y = 40;
        }
  </code></pre>
  
  <p><strong>When Fighter hits an Object and dies:</strong></p>
  
  <pre><code>              public void die() {
        isAlive = false;
        velocity.y = 0;
        acceleration.y = 460;
     }
  </code></pre>