Skip to main content
gamedev.net
🔒 Locked

Creating menu driven Animation

Started by cnjcombo 9 replies 1.9k views
Original Post
cnjcombo
cnjcombo
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?
stroma
stroma
use a timer..
+-+-+-+-+-STR
cnjcombo
cnjcombo
I tried to use loops to slow it down but it doesnt help.
kburkhart84
kburkhart84
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.


cnjcombo
cnjcombo
I am using Bitmaps. I would like to take a look at that timer class when you get a chance.
kburkhart84
kburkhart84
Should I send it via e-mail. It is pretty small. Give me your e-mail if you want. I'll send the .h .cpp files and a couple of comments in the email about how to use it.


cnjcombo
cnjcombo
Yes, email please. cnjcombo@yahoo.com
kburkhart84
kburkhart84
OK, check your mail. I included a code snippet to get you started.


ff8
ff8
can i have a copy from it ^^
ff8_flash4pro@hotmail.com
kburkhart84
kburkhart84
OK, FF8, check your e-mail.


cnjcombo
cnjcombo
I did not receive the email, could you send it to my other email account, huckstopper@gmail.com

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.