...
Or if you're using a 'double':
1 2 3 4 5
| public void move() { if (player.movingRight()) { player.absX = player.absX += 0.1; } } |
If that's not what you're looking for let me know.
I am referring to faster increments of the x/y-axis.
If you're using any sort of timer that updates (or allows updating) of the sprite position when time's up, then you can just use the speed of the sprite to calculate the new timer time. Each sprite would need it's own timer, but that's normal.
not sure how that would play out, maybe if I were to increase the time depending on how long the key is held? I'm mainly having trouble increasing the value by 1 fast enough so that I can move at a fast pace but still prevent choppiness
it's like basically trying to scroll over 200 pixels when you could just increment by like 50 pixels and get there extremely quickly whereas you'd increment by 1 pixel very quickly and get there as quick (except not producing a choppy, 'bursty' travel)