Sign in to follow this  
cnjcombo

Creating menu driven Animation

Recommended Posts

cnjcombo    122
Hey all, I am trying to create menu driven animation, only problem is, the display loop runs through so fast that you never see the animation take place. How does one slow down the idle function?

Share this post


Link to post
Share on other sites
kburkhart84    3187
what method are you using to do the animation, and is a a 3d model or is it bitmaps. I think I saw you posting about bitmaps before, so I'll go with that, if I'm wrong correct me. You need to decide how much time you want to take between frames of your bitmaps. Then, when you start the animation, don't swap frames until that amount of time has passed. I can give you a good timer class if you want it. It returns the time passed as well as the frame per second. You can use this to add up how much time passes and when however much time you want it to be has passed, you then(and only then) swap frames, and do it again for each frame that follows.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this