Store sprites in different arrays

Subscribe to Store sprites in different arrays 2 posts

avatar for pugzy pugzy 21 posts
Flag Post

Basically, I’m making a strategy game and there’s 4 different color for each unit, and many spritesheets, what is a good way to store each frame in an array?

 
avatar for vesperbot vesperbot 1883 posts
Flag Post

That highly depends on what should be colored in your 4 fractions. If entire unit, you might satisfy with one monochrome sprite sheet and color transforms, if not, then ther’s not enough information to give a good advice.