jmiller
Dec 3rd, 2002, 09:39 PM
I want to take a poll:
in all the games you've made, how do you go about moving your sprites? Do you move them every frame? If so, do you make them faster by moving them more than one pixel per frame? How do you deal with the jerkiness that comes with moving more than 1 pixel per frame?
If not, do you base speed off of how often it moves(eg, 1 px every other frame, or 1 px every three frames, and so on)?
I'm asking because i have a game that runs at 100 FPS. If i only move each image at 1 px per frame, that 100px per second. And thats the slowest it can go. If i decide to base movement off of framecounts, thats the fastest it can go(eg, every frame is 100px/sec, every other frame is 50px/sec...). I'd like to know whats the best way to go about this. Also, when you call bitblt, can the x,y values be decimals, like 1.5?
thanks
in all the games you've made, how do you go about moving your sprites? Do you move them every frame? If so, do you make them faster by moving them more than one pixel per frame? How do you deal with the jerkiness that comes with moving more than 1 pixel per frame?
If not, do you base speed off of how often it moves(eg, 1 px every other frame, or 1 px every three frames, and so on)?
I'm asking because i have a game that runs at 100 FPS. If i only move each image at 1 px per frame, that 100px per second. And thats the slowest it can go. If i decide to base movement off of framecounts, thats the fastest it can go(eg, every frame is 100px/sec, every other frame is 50px/sec...). I'd like to know whats the best way to go about this. Also, when you call bitblt, can the x,y values be decimals, like 1.5?
thanks