Sign in to follow this  
Luminous

Fighting Game Character And Animation Control

Recommended Posts

Luminous    127
I'm currently creating a Fighting Game for a Final Project in a Game Design & Development class. My game has roughly 25 animations per character and is a 3D world with 2D fighting game sprites. I have a class called "Sprite" that handles the rendering and control of a simple sprite object and then an extended class called "AnimationSprite" that inherits from "Sprite" and adds the ability to animate the sprite. The animatedsprite has a structure called "Animation" that defines a single animation that can be using one texture or multiple textures for animating the sprite, and a time length. I can play, stop, loop a number of animations. What would the best way to control the fighter's actions and animation? Instead doing an overly complex if...then statement manually checking every possiblity of movement and input i'd like to have general rules setup so adding animations would be relatively simple and not require editing tons of code.

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