Tiling 5000x5000 stage

Get help using Construct 2

Post » Sun Jun 24, 2012 3:02 pm

Asked this in a post about something else but thought it might stand out a bit as its own,so.
I have a question about tiling. I have put a background layer of stars (for paralax) Then 2 more layers for platforms (for 3d look). My stage is around 5000x5000 pixels (including the platforms layer which is one solid piece as a background behaviour). I know this is too big to run well, and wont display in some browsers (mobile in particular).

What is the best way to split into tiles? Would I just use photoshop (my mainstay app) to cut into say 1024x1024 tiles and then just line them up in Construct 2? If so what is the best way to get perfect alignment? And how will this effect how the level is displayed and accessed by resources?

Do I have the whole tile thing completely wrong or is this the way it is done?

Thanks
B
6
S
1
Posts: 26
Reputation: 927

Post » Sun Jun 24, 2012 3:12 pm

I really want to help you here, but I can't quite understand your problem :S

If you want a tiled background shouldn't it be enough to add a tiled background? (double click on the layout and select add Tiled Background)
B
42
S
11
G
5
Posts: 446
Reputation: 6,417

Post » Sun Jun 24, 2012 3:48 pm

Hi, my background int made up of tileable pieces, it is one solid image that is about 5000x5000 pixels in size. If I add this image using the "tiled background" behaviour it says:

"Imported image is very large (5000x5000), images with a width or height over 1024 pixels may not be supported on all systems. Consider cutting the image into tiles."

SO I dont really want it to be broken up, and I don't want to build it out of pieces, so wondering how best to get around the size limitation.
hope that makes sense.

Cheers

B
6
S
1
Posts: 26
Reputation: 927

Post » Mon Jun 25, 2012 1:09 pm

The maximum size that will work everywhere is more like 2048x2048 actually these days. So you can cut it up in to a few tiles that size. You should enable Pixel Rounding in project properties to prevent seams appearing along the edges of the tiles, and that should be it.
Scirra Founder
B
359
S
214
G
72
Posts: 22,949
Reputation: 178,544

Post » Mon Jun 25, 2012 2:58 pm

Awesome, thank you very much, surprised you find the time to answer little questions like this when your developing the thing, surprised and impressed.

And considering my stage is not exactly a power of 2 (5000x5000), it would be better to shrink it to 4096x4096? or does power of 2 not matter with background images?

Cheers Ashley
B
6
S
1
Posts: 26
Reputation: 927

Post » Mon Jun 25, 2012 4:59 pm

It would definitely make sense to shrink it to 4096x4096, simply because then you only need 4 tiles at 2048x2048 - at 5000x5000 you'd need another 5 tiles just for the edge bits which is probably going to be a pain.
Scirra Founder
B
359
S
214
G
72
Posts: 22,949
Reputation: 178,544

Post » Mon Jun 25, 2012 5:13 pm

Thanks mate, good to know you patrol these forums. Looking forward to putting my game out (only a level probably), and getting some feedback on the visual style.

Cheers
B
6
S
1
Posts: 26
Reputation: 927


Return to How do I....?

Who is online

Users browsing this forum: TELLES0808 and 21 guests