Original Post
Hi Guys,
I have been working on a framework for a game I am working on and I am now upto sprite animation.
So far, I have sprites stored as structs in a vector and this is working well.
All of the animation frames will be stored in a single bitmap (per sprite).
I' am trying to work out what would be the best way to handle animations programmatically.
In the end I would like to be able to call up the animation something like so;
animateSprite(WALK, MAINPLAYER);
Having something like this
WALK - frames 1 to 10
RUN - frames 1 to 20 etc...
What would be the best way to handle this? Another vector perhaps?
Any thoughts would be awesome.
I have been working on a framework for a game I am working on and I am now upto sprite animation.
So far, I have sprites stored as structs in a vector and this is working well.
All of the animation frames will be stored in a single bitmap (per sprite).
I' am trying to work out what would be the best way to handle animations programmatically.
In the end I would like to be able to call up the animation something like so;
animateSprite(WALK, MAINPLAYER);
Having something like this
WALK - frames 1 to 10
RUN - frames 1 to 20 etc...
What would be the best way to handle this? Another vector perhaps?
Any thoughts would be awesome.