|
Help with speed of animations.
Hey,
I've finished my pong game, and I've decide to move to a sort of action/adventure game similar to zelda. The only problem I'm having so far is that the animations of the character walking are to quick.
heres the code:
So if someone can tell me how to slow this down it would be a great help, thanks for your time.
Edited by - FlorianapoliS on August 5, 2001 4:38:47 AM
One way is to use static variables to keep track of the time since you last changed the frame of the animation. Every time the movement code is called, check if the time elapsed is greater than 0.25 seconds (or whatever time period you want between frame changes). If it is, change the frame and set the timer back to zero. If it''s not, do nothing.
You have made a pong and now you want to make a Zelda?... hmmm... I think you should make some tetris clone first, then pacman and then mario bros. after that you''ll have enough skills to strart doing a basic tile based RPG like Zelda....
but ok... go on if you feel like you can do it...
good luck!
jakovo
but ok... go on if you feel like you can do it...

good luck!
jakovo
"lots of shoulddas, coulddas, woulddas in the air, thinking about things they shouldda couldda wouldda donne, however all those shoulddas coulddas woulddas ran away when they saw the little did to come"
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement