Changing Tiled Background source image size

Discussion and feedback on Construct 2

Post » Tue Jul 04, 2017 1:40 am

Hi

I'm Currently working on a game which I'm designing on 1080p, however in order to get good quality at higher resolutions as well, I'm making all my Sprites at 2x of what I use in the game. So for example I have an Sprite which is 100 x 50 but the source image is 200 x 100 so when the game runs at higher resolutions, the quality of sprites don't reduce.

But I found out that I can't use the same practice for Tiled Backgrounds because you can't change the size of the source image in the editor or events.
I want to know if there is any solution for this?
B
45
S
19
G
3
Posts: 102
Reputation: 4,598

Post » Tue Jul 04, 2017 12:58 pm

There are system expressions called ImageWidth and ImageHeight you can use those to get the original size of the image, not the total sized of the tile, changing those will change the original image size.

I am not sure if this will improve the quality of the image, but it will change its size. Tiled backgrounds are very simple and they don't offer many options as sprites do, for performance reasons.
Like my work? Fallow me on social media, and see my games on the arcade.
B
7
S
5
G
9
Posts: 298
Reputation: 5,357

Post » Tue Jul 04, 2017 6:33 pm

You can change the texture using load from url.
Otherwise, if you know the texture will be scaled up at run time every time, then scale the texture up before you import it into the editor.
Note, unless the texture scales up well, and most textures don't, you may still have the same issue, unless you create a texture of the target scale.
Also note, most, if not all textures scale down without quality loss.
Image ImageImage
B
168
S
50
G
163
Posts: 8,221
Reputation: 105,061

Post » Wed Jul 05, 2017 1:52 am

newt wrote:You can change the texture using load from url.
Otherwise, if you know the texture will be scaled up at run time every time, then scale the texture up before you import it into the editor.
Note, unless the texture scales up well, and most textures don't, you may still have the same issue, unless you create a texture of the target scale.
Also note, most, if not all textures scale down without quality loss.

I tried what you are saying before but it doesn't work, no matter what the source texture is, it always scales up which results in losing quality.
B
45
S
19
G
3
Posts: 102
Reputation: 4,598

Post » Sat Jul 29, 2017 4:03 pm

@ashley
B
45
S
19
G
3
Posts: 102
Reputation: 4,598


Return to Construct 2 General

Who is online

Users browsing this forum: Colludium and 2 guests