All with LibGdx in render
if (Gdx.input.justTouched()) { // прикоснулся к экрану while (bullet.y < 500) { bullet.x -= 100 * Gdx.graphics.getDeltaTime(); bullet.y += 100 * Gdx.graphics.getDeltaTime(); } } I want to make sure that when pressed, the bullet flew with constant acceleration somewhere. From while she instantly turns out to be 500 y. If you remove the conditions
if (Gdx.input.justTouched()) { while (bullet.y < 500) { , the bullet flies constantly and as needed. If you delete only while , it shifts by a specified distance. I can not understand why because while she behaves.