|
-
Nov 15th, 2002, 12:42 PM
#1
Thread Starter
Addicted Member
A question on moving sprites
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|