Performance of tiled backgrounds

Get help using Construct 2

Post » Sat Jul 27, 2013 5:05 pm

Hello all.

I'm looking to make a top scrolling shooter for the iPad and am wanting to use a tiled background as it will save me an immense amount of time creating the maps.

The tutorial below states that less than 20 sprites should be used in order to maximise performance. Does each tile count as a sprite or will the fact that the tiles are doing nothing exempt them from this 20 sprite guideline? The tiles are of a size that there will be around 30-40 of them on screen at a time.

https://www.scirra.com/tutorials/298/performance-tips-for-mobile-games

Thanking you in advance!!iso2502013-07-27 17:07:47
B
10
S
3
G
1
Posts: 30
Reputation: 1,279

Post » Sun Jul 28, 2013 4:47 am

Please forgive me for bumping my own post but if someone does know the answer I can spend my Sunday making my backgrounds!!

(Crosses fingers, hoping someone more knowledgeable than me knows the answer...)
B
10
S
3
G
1
Posts: 30
Reputation: 1,279

Post » Sun Jul 28, 2013 7:20 am

According to that article: https://www.scirra.com/blog/112/remember-not-to-waste-your-memory you can and you should use tiled backgrounds, as tiled background counts as one sprite. That's how I understood it, but you can read the article also. There are some valuable tips there.
B
3
Posts: 24
Reputation: 298

Post » Sun Jul 28, 2013 3:03 pm

That's a really good article. I didn't find that. Thank you for linking it!!

I have one last question. If you use the same sprite to tile the entire background but you use different animation frames at each location, does the game consider it to be a single sprite or as many sprites as there are different animation frames?

The tutorial linked below shows that the platforms are all the same sprite but they have different animation frames.

https://www.scirra.com/tutorials/253/how-to-make-a-platform-game/page-2
B
10
S
3
G
1
Posts: 30
Reputation: 1,279


Return to How do I....?

Who is online

Users browsing this forum: Gokee and 2 guests