16x16 Tilesize and small resolution = BIG UI BUTTONS

hello,
maybe you can help:

changing the tilesize from 48px to 16px requires the screen resolution to be resized accordingly.
since the UI elements are made for 48px, they appear too big.

I want to make the UI elements match the screen resolution.


the following things I have tried already:

- Resizing the Window.png -> Elements are sliced incorrectly, reason: rmmz_windows.js slices the png based on a 96px measure. To make this work I would have to change the way Window.png is being handled, no way.

- Change the margins/paddings and work with big Window.png buttons. Would have to change PIXI.js, rmmz_windows.js, and rmmz_core.js. -> too difficult.

- using GraphicalDesignMode.js -> the plugin does not work (cannot read property 'toUpperCase' of null, i cant bugfix this)



things i dont want to do:
- use an external plugin to zoom closer to the character instead of changing the screen resolution. (this would fix the UI elements, but it leads to different problems down the road, mainly pixel allignment of objects that are rendered on top of each other)
- use Yanfly plugins (too many additional features im not interested in, bloated. and i dont think it helps in this case.)

Does anyone know of any solution?
Maybe you know exactly what to change about the rmmz_windows.js file.
Or maybe you know a Plugin... internet was no help
does anyone have experience working with different tile sizes?


thanks
Welcome! Just a couple of notes:
changing the tilesize from 48px to 16px requires the screen resolution to be resized accordingly.
You are probably thinking of your game's window dimensions. It's unlikely the user is going to change their screen's resolution to play your game 😉

- use Yanfly plugins
This is not an immediate option - Yanfly's plugins are all for MV, you'd have to use an interface like Project FOSSIL just to make them work mostly correctly. (And I wouldn't say they're bloated)

Does anyone know of any solution?
My first recommendation would be to use 32x32 instead of 16x16. Your tiles will look exactly the same because you're resizing them by a factor of 2, and the UI will be much closer to its default size.

That being said, there's also this:

I know you said you didn't want to use a zoom plugin, but this has feedback from people using it specifically with your tile size. And I don't think you have a ton of choices, as you do not appear to have any familiarity with JavaScript.

- using GraphicalDesignMode.js -> the plugin does not work (cannot read property 'toUpperCase' of null, i cant bugfix this)
...you don't have to? That's what the JS Support forum is for, to ask for help.
@ATT_Turan thanks for the quick reply.

I meant changing the screen width and height in advanced settings System2, it negates the need for a zoom plugin. (maybe we are talking about the same thing, my bad if we are)

I thought about resizing the Tilesizes to 32x, but i want to use 16x tiles not 32 ^^

yes my familiarity with JavaScript ends with C. I only know C.

I will look into Zoom plugins again.
( My issue with the zoom plugin is, that the Event Image appears to be smaller than the Background tile for some reason. If you look at the left edge of the blue door, a thin black line is still visible... But i think this is not the right thread... )

Thanks
I meant changing the screen width and height in advanced settings System2, it negates the need for a zoom plugin.
Well...no? A pixel is a pixel. You're having issues with your UI because those elements take up a certain number of pixels on the screen based on how the font is drawn and the words and icons/pictures displayed in the interface.

When you make your game window smaller, you're giving the engine fewer pixels to draw on. So the UI elements might no longer fit. You're also making it take up less space on the user's monitor, so you might get people squinting at the little window 😉

Using a zoom plugin, you would leave the game window at its original larger size and the plugin zooms into the tiles, making each of the pixels in your tileset take up multiple pixels on the user's monitor. Then the UI portion is drawn at its regular size.

Using the zoom literally achieves the same thing as you resizing the tilesets, except it's being done during runtime by the game engine.

I thought about resizing the Tilesizes to 32x, but i want to use 16x tiles not 32 ^^
Why? Do you specifically want the tiles to be really small on people's screens? That would affect the advice you're given.

My issue with the zoom plugin is, that the Event Image appears to be smaller than the Background tile for some reason.
I think that might be an error with the plugin you chose? Was it the one I linked you to?
I think that might be an error with the plugin you chose?
thx, changing the sprite black lines parameter fixed the issue.

i will use the zoom plugin.
Going to second using a zoom plugin. I have tried just about everything you can think of for my game to decide what works best, and the best 2 options are:

A. Set tile size to 16x16 and use a zoom plugin with 1280x720 screen, and 1280x720 or smaller UI scale.

B. Set size to 32x32, don't use a zoom plugin, and double the size of all your 16x16 tiles after you design them so they can be used on a 32x32 grid. This is the best way if you really don't want to use a zoom plugin, but there is no real upside to it (same screen size is being rendered, so no memory gains, and you have less control over the zoom).

If you want to use them, my specific dimensions to avoid pixel distortion when zooming is to use a 1248x720 screen with 3x zoom in my zoom plugin. This is because 1248 and 720 are both divisible by both 16 and 3, so you can perfectly divide 16x16 tiles into it, and then divide that by 3 (3x zoom) and still be pixel-perfect.
@chris-cote i see, thanks for ur insight.
i have one question tho. i noticed with zoom that parallax mapping becomes a tad annoying. when using a 16x tilesize, the parallax image is still set to the native resolution. the edges of the image are unused when zoomed in. what did you do? :LZSsmile:
no memory gains
I really shouldn't think this would be a consideration.

The RAM consumption from a fully-loaded tileset at 48x48 is less than 17 MB. I can't imagine what kind of computer you would be trying to run your game on where that isn't absolutely trivial, never mind you think you'd gain performance by using less.
I really shouldn't think this would be a consideration.

The RAM consumption from a fully-loaded tileset at 48x48 is less than 17 MB. I can't imagine what kind of computer you would be trying to run your game on where that isn't absolutely trivial, never mind you think you'd gain performance by using less.
I mainly mean to say "there's nothing to gain from this", in case anyone would think that say, using many parallax layers or something would suddenly be more stable if you crop in more, which it wouldn't. You could probably still do that just fine, there just isn't going to be any optimizing happening just by zooming in despite seeing less of what is actually being rendered.

Parallax mapping in particular is something that even if your game is running well, losing 1% of your performance on a 16x16 tile size map means every pixel that your layers fall out of sync with each other or your events due to even the smallest bit of lag will cause noticeable jitter.

@chris-cote i see, thanks for ur insight.
i have one question tho. i noticed with zoom that parallax mapping becomes a tad annoying. when using a 16x tilesize, the parallax image is still set to the native resolution. the edges of the image are unused when zoomed in. what did you do? :LZSsmile:

I am not too sure what you mean, everything should work the same way at 16x16. As long as your parallax is the same resolution (built with 16x16 resolution in mind) then it should all line up just fine, whether you are using the standard parallax feature in the map settings, or a plugin. I use Galv Layer Graphics personally, and it works just fine.

Original thread: https://forums.rpgmakerweb.com/threads/16x16-tilesize-and-small-resolution-big-ui-buttons.163820/