animating sprites

Started by
9 comments, last by ca_priest 21 years, 4 months ago
So basically if i do it the way you describe above...my game loop cycles as fast as the machine will allow, and the sprite will change after a certain amount of time, determined by the that specific sprite, not the game loop? This is how im thinking you would do that ( correct me if im wrong )...Instead of setting a constant time for the loop, let the loop run as fast as possible, and time each cycle...keep summing up the time it takes the cycles until it hits a pre-determined value within the sprites structure, then update the sprite to the next in the animation sequence, and start the timing over again. This seems like a very efficent way to control animation, and it looks like this would make sure that the animation runs the same speed on other computer. Thanks for the info.
...and that's where I saw the leprechaun...he told me to burn things.

This topic is closed to new replies.

Advertisement