Character variations, animations, and spritepacker

I’m looking for some advice for my case, I hope you guys can help :slight_smile:

I have a main character in my game, and he has about 30 animations, all in different sprite sheets.
My game is a martial arts game, so I’d like to have variations of the character with different colour belts.
Finally, I’ve read about the sprite packer, and that seems like something I should take advantage of :slight_smile:

Currently, I’ve placed all the spite sheets in the resources folder, and then I use LateUpdate to swap sprites to show the character with different belt colours (this technique was demonstrated at Unite 2014). This seems to work just fine, but I don’t think this is compatible with the sprite packer.

So, any ideas for a different set up that would work with the sprite packer? I don’t have a need for changing sprites at run-time. I only used this technique because it seemed like the least amount of work… :stuck_out_tongue:

However, now I’m looking for a solution that is compatible with the sprite packer. Maybe it’s possible to use the sprite packer to create an atlas for all the sprites of each character variation, and then use something to point to different atlasses…?

Advice is very much appreciated. Thank you!

Hi guys, this is no longer a theoretical issue: my game crashes on my android phone as it runs out of memory :frowning:

I’ve moved the spritesheets out of the resources folder and I’m using the sprite packer so that I can still run my game on android. However, this means that the ‘reskinning’ technique where individual sprites are replaced in LateUpdate no longer works.

I would really like to have the same character with different belt colours. Any ideas?
Is it possible to point to different atlasses from code? If not, then maybe I can use the animatoroverridecontroller to get what I need…?

Thanks a lot for your help! I appreciate it :slight_smile:

Hmm could a mod maybe move this thread to the graphics section? Maybe someone over there knows a technique to combine the sprite packer with character variations :slight_smile: