Sprite Vs Tiled Background

Discussion and feedback on Construct 2

Post » Tue Aug 28, 2012 7:34 pm

Which would be more speed efficient, a 32x32 image as a sprite, or a 32x32 image as a tiled background [which wouldn't be tiled, just used as a single 32x32 image]. The image won't do anything, it's just for background.

The reason I ask is that I would potentially be using a LOT of these to build a landscape and want the least slow down. Here's an example of what I'm on about, I'll be building the gray tiles individually.

B
72
S
25
G
10
Posts: 383
Reputation: 11,171

Post » Tue Aug 28, 2012 8:04 pm

If there is any place where two identical tiles is placed next to each other, then you can benefit from making them tiled background.

A 32x32 tiled background and a 32x32 sprite is equally efficient. But a tiled background that is made of 32x32 and is 512x512 or 32x512 is just as efficient as the 32x32 sprite or tiled background.

In other words - if there is no use for a sprite, always use tiled background. But remember that a sprite can do many other things a tiled background cannot.lokesen2012-08-28 20:05:37
B
7
S
3
Posts: 109
Reputation: 1,645

Post » Thu Aug 30, 2012 8:38 pm

In the case of the screenshot provided I would use the most commonly used block (standard gray square) as the tiled background and then build on top of it using 32x32's where needed.
B
4
S
1
Posts: 20
Reputation: 540

Post » Thu Aug 30, 2012 11:47 pm

Thanks. :)
B
72
S
25
G
10
Posts: 383
Reputation: 11,171

Post » Fri Aug 31, 2012 12:35 am

I had this Question too, Thanks for asking ... and answering
B
23
S
7
G
4
Posts: 15
Reputation: 4,675

Post » Fri Aug 31, 2012 2:26 pm

Don't forget you can still move a tiled background around by using code, too. I used MMF2 before C2, and it couldn't do that, I'm glad C2 can.
B
125
S
43
G
41
Posts: 849
Reputation: 28,260


Return to Construct 2 General

Who is online

Users browsing this forum: WesleyDeveloper9 and 7 guests