During a game loop, if the user has a key down, i want to move a sprite. Now, i've heard of several ways about dealing with the speed. Should i have the sprite only be moved after so many frames, and then when i want to increase its speed, just move it more often? Ex: move every 10th frame to every 2nd frame. Or, should i just move it more than 1 pixel at a time? This produces some jerkiness and i think would cause problems with collision detection (ie, running over the object its colliding with). thanks for any ideas,
jmiller