Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Cobra

Brett - animations

This topic is 6474 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I hope you get to see this. I tried visiting BOTH of your sites ( old and new ) for an e-mail addy, but both sites were down! ( sods law! hehe ). Basically I just wanted to know if there is any way to set which animation frames are ran depending on which key is being pressed. For example, how would I make it so that when you press the forwards key, it runs through animation frames 1-15 e.t.c. Hope you can help me.. Thanx. ~Cobra~ Edited by - Cobra on February 16, 2001 6:19:07 PM

Share this post


Link to post
Share on other sites
Advertisement
I''m not great at c programming but I would do it by declaring a variable for the animation mode, and a variable for the frame, alter the animation mode variable with key presses and cycle the frame. If you think about it a bit and use a few "if"s it''s not hard. Like, if mode=2 draw frame+15.

Or is your problem with keyboard input?

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!