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?
[Solved] Different Uses of Spritebatches
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
-
- Prole
- Posts: 8
- Joined: Wed Sep 29, 2021 7:12 pm
[Solved] Different Uses of Spritebatches
Last edited by jumptrigger on Thu Sep 30, 2021 6:39 pm, edited 1 time in total.
Re: Different Uses of Spritebatches
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.
Tools: Hot Particles, LuaPreprocess, InputField, (more) Games: Momento Temporis
"If each mistake being made is a new one, then progress is being made."
"If each mistake being made is a new one, then progress is being made."
-
- Prole
- Posts: 8
- Joined: Wed Sep 29, 2021 7:12 pm
Re: [Solved] Different Uses of Spritebatches
Thanks for the help.
Who is online
Users browsing this forum: Bing [Bot] and 2 guests