Handling animation with different outfits

Monkey Forums/Monkey Programming/Handling animation with different outfits

erebel55(Posted 2014) [#1]
I have the following animation frame strip


And I am also have a handful of different hat and shoes I am trying to support.

For example, here is an example of a hat frame strip


And here is an example of a shoe frame strip


I want to support different shoe and hat combinations. So the player could either have no shoe and no hat on, hat1 and no shoe, no hat and shoe1, hat1 and shoe2, hat1 and shoe3, hat2 and shoe1, etc.

I currently have 6 different shoes and 6 different hats; so supporting all of these different combinations will get out of hand quickly if i had a new framestrip for each one.

So, I was thinking of splitting the images in half vertically, since there are two parts a hat and a shoe.

I could then grab the shoe and hat I am interested in and piece them together. Should I use a texture atlas for this or GrabImage? As always examples welcome.

(I'm not using diddy)

Thank you!


Gerry Quinn(Posted 2014) [#2]
If you have them already made up in the above format, I'd suggest you just use GrabImage to make series of half-images. (Or you could use DrawImageRect on the current images). Or you could hake new strips that are only half-figures.

Unless the images are so large or so many that efficiency is important, just choose whatever is easiest.