How do I make tiled background zoomable?

Get help using Construct 2

Post » Wed Jul 12, 2017 12:10 pm

I have a large map -> 10000,5000 <- with tiled grass all over it.
The game I am making has a vital function of zooming in and out, and, while every other sprite can just have a much bigger resolution (and smaller sprite size then it's res) and look good both faraway and zoomed; you are unable to do such a thing with tiled background.

How do I make so that the tiled background would not go blurry and ugly upon zooming into it?
Thank you in advance.
B
6
S
3
Posts: 104
Reputation: 1,596

Post » Wed Jul 12, 2017 1:57 pm

It needs to be on it own layer.
Scale the layer in away that its scale factor = 1 when the the others are zoomed in to the maximum allowed.
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950

Post » Wed Jul 12, 2017 7:45 pm

But then grass just stays the same; and other sprites look floating in empty space.
Also, what exactly is a "scale factor", because there are several scale properties in Construct.

Although I might have misunderstood you, let me test smth and get back to you.

UPDATE : Okay, although a genious idea; this does not work as well as you'd expect :
1. Grass is too small and looks odd
2. Everything now looks as in its floating on grass, not built on it (since grass's scale is now 0.5 when layout's scale is 1.0)

Any way else? Point sampling does the job extremely well, but it results in weird flickering on anything that moves smoothly, which hurts the eyes.

Other ideas? :(
B
6
S
3
Posts: 104
Reputation: 1,596

Post » Wed Jul 12, 2017 9:24 pm

1. Graphics issue, got to draw in right proportions.
2. You do not zoom proportional.
3. A scale factor is a number which scales, or multiplies, some quantity.

Why point sampling ? Are you making pixel art ?

Are you scaling each object individually ?

I am getting the idea that you are doing something totally not standard.
Gonna humble back off, might be better if you share a .capx.
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950

Post » Thu Jul 13, 2017 8:50 am

Yes, I am macking a pixel art game (though with physics and correct collisions)
I am scaling the layout itself (+ layer 0 as you proposed)
B
6
S
3
Posts: 104
Reputation: 1,596


Return to How do I....?

Who is online

Users browsing this forum: Fradno, Laurent and 11 guests