In the tutorial for a bitmap to be moved around the screen it just did
- Code: Select all
Object.setCoordX(Object.getCoordX() + 1);
That is if the object was moving to the right, but this was in a loop and the bitmap was constantly being moved to the right fairly smoothly. (Until it hit the edge then it went left);
What I want to do is control an object with the Dpad and move my object around. The only problem is that by using curX + 1 the object moves extremely slowly, and if I use something like curX + 5 or + 10 it moves fast but extremely choppy. So, is there a better way to move the bitmap around that is smoother?
(When the Dpad is pressed I'm moving the bitmap within the onKeyDown method)