I have issue with movement. My goal is to make player move once key is pressed for its own width/height. For example:
if (Gdx.input.isKeyJustPressed(Input.Keys.A))
player.position.x = player.position.x-moveSpeed;
that works precise, but I want it more smooth, to move exact distance in a second, but each millisecond a bit, not all at once.
This makes player move smooth, but it's not precise:
if (Gdx.input.isKeyJustPressed(Input.Keys.A))
player.position.x = player.position.x-moveSpeed*deltaTime;
How can I make smooth transition, but precise?