Page 1 of 1

[Solved] Different Uses of Spritebatches

Posted: Thu Sep 30, 2021 6:30 am
by jumptrigger
I was wondering if I have multiple tilesets if I have to use different spritebatches for each? So 5 tilesets = 5 spritebatches? I'm guessing I don't need it for single images like a barrels that I don't render to much but do I need it for animations?

Is there other ways to use it?

Re: Different Uses of Spritebatches

Posted: Thu Sep 30, 2021 10:20 am
by ReFreezed
If you have multiple images then you'll need a different spritebatch for each image. If your tilesets aren't huge you could combine all tileset images into one image - then you could use a single batch for everything.

Re: [Solved] Different Uses of Spritebatches

Posted: Thu Sep 30, 2021 6:40 pm
by jumptrigger
Thanks for the help.