Sprites/game look too small; clipping issues when made bigger [RPGXP]

So, I'm attempting to make a game with a friend, using RPG Maker XP. Neither of us have used this programme before, though I've used RPG Maker 2003 in the past. From what we were told, XP works predominantly in a 32x32 pixel format, which was perfect - because the sprites I'd made were exactly that size.

$Kao.png


These work fine in the game. However, they look too small in the actual window. As if the game's been zoomed out too far.

smallsprite.png


Someone told me to "make the sprites bigger" to try and rectify this issue, so I did. Each sprite is now twice the size, and actually looks like it fits on the screen.

largesprite.png


However, I'm now having this issue:

issue.png


Which I can't rectify no matter how hard I try. I've looked through the forums and tried to work on the advice of several posts about spritesheet size and the like, but this is still happening.

Is there any way I can have the best of both worlds? I hate how pitifully tiny everything looks in the original screenshot, and it would just make for a bad game if everything looked that zoomed out, but I absolutely cannot stand this janky collision issue. I'm not even entirely sure why it's happening, considering that the bed is set to not allow anything through it.
Alright, I have some explanation, and a couple questions, so stick with me. May be long.

The first screenshot is actually the sprites being read and displayed mostly as given, which you can see by cross-referencing with the tiles in the editor behind them. Basically, when you sprite in 1x, the sprites will all look very small, since they are displaying at a 1 to 1 ratio on your computer screen.

The way RPGMaker reads sprites and tiles is different. I'm guessing, when you made the tiles two times bigger, you had to re-map and re-assign collision, because tiles must always be placed in 32x32 in the RM engines that use 32x32. By doing this, you actually increased how many tiles you need to fully display an item. However, it doesn't need to do this with character sprites. Character sprite sheets just need to be in a 2 by 3 ratio in XP, so 32x48, 64x96, etc. are all readable by the editor.

But, all characters still only have 32x32 collision (takes up one tile), so it centers player sprites x-wise, but keeps them on the lowest tile possible and lowest pixel on that tile y-wise. This is why sprites can be 32x48 on the spritesheets- they can actually be quite tall and always be centered (though sprites that are too tall may clip from the top depending on tile collisions).

The screenshot isn't perfectly at 2x, so I can't be exact with my display here, but hopefully this is a reasonable demonstration. The green is around the actual tile collision, the blue is the center of the tile, and the red is the bottom of the tile (which matches up with the other tiles).
1626186763105.png

Basically, when it's placing down your sprite, there's 16 pixels of leftover sprite that it displays on the sides, which is why you're having this clipping issue. It's purely visible clipping only, and has no effect on the actual in-game collision (because images, models, etc. in games are drawn over collisions and have no effect on them).

So the engine is perfectly reading your collision as far as it knows, because the 32x32 actual collision tile cannot pass into the bed's tile. But, it doesn't monitor an image- it really can't monitor a purely visual clip like this.

If you want the bigger sprites without much clipping, the only solution is to edit or re-do your player sprite. You'll have to change its width in order to keep it from clipping too much. A width of 32 pixels will allow no clipping whatsoever.

Going forward, it's always a good idea to just sprite in 1x and size up instead. So, doing all your character sprites in 16x24 and all your tiles in 16x16, then sizing them up in your paint program will probably give you the best results. The game will still be small, but the pixel size will be bigger, so it won't be as much... for ants.

Sorry for the long post. Hopefully this all makes sense. Feel free to ask more questions or for clarifications.
The key here is the length between steps, which is 32px on XP.

What's the closest to what you're looking for?

If the step size you prefer is the one with the small sprites, what you need is a Map Zoom script.

If it's the one with the large sprites (or if you want to use a custom script for that, for example a pixel movement), you basically need to fix the passability issues so you can't get that close to the bed.

Bear in mind whatever option you choose, scaling the map will cause a resolution clash with other things on the game, for example the font, so I recommend being consistent with that choice.
Alright, I have some explanation, and a couple questions, so stick with me. May be long.

The first screenshot is actually the sprites being read and displayed mostly as given, which you can see by cross-referencing with the tiles in the editor behind them. Basically, when you sprite in 1x, the sprites will all look very small, since they are displaying at a 1 to 1 ratio on your computer screen.

The way RPGMaker reads sprites and tiles is different. I'm guessing, when you made the tiles two times bigger, you had to re-map and re-assign collision, because tiles must always be placed in 32x32 in the RM engines that use 32x32. By doing this, you actually increased how many tiles you need to fully display an item. However, it doesn't need to do this with character sprites. Character sprite sheets just need to be in a 2 by 3 ratio in XP, so 32x48, 64x96, etc. are all readable by the editor.

But, all characters still only have 32x32 collision (takes up one tile), so it centers player sprites x-wise, but keeps them on the lowest tile possible and lowest pixel on that tile y-wise. This is why sprites can be 32x48 on the spritesheets- they can actually be quite tall and always be centered (though sprites that are too tall may clip from the top depending on tile collisions).

The screenshot isn't perfectly at 2x, so I can't be exact with my display here, but hopefully this is a reasonable demonstration. The green is around the actual tile collision, the blue is the center of the tile, and the red is the bottom of the tile (which matches up with the other tiles).
View attachment 195273
Basically, when it's placing down your sprite, there's 16 pixels of leftover sprite that it displays on the sides, which is why you're having this clipping issue. It's purely visible clipping only, and has no effect on the actual in-game collision (because images, models, etc. in games are drawn over collisions and have no effect on them).

So the engine is perfectly reading your collision as far as it knows, because the 32x32 actual collision tile cannot pass into the bed's tile. But, it doesn't monitor an image- it really can't monitor a purely visual clip like this.

If you want the bigger sprites without much clipping, the only solution is to edit or re-do your player sprite. You'll have to change its width in order to keep it from clipping too much. A width of 32 pixels will allow no clipping whatsoever.

Going forward, it's always a good idea to just sprite in 1x and size up instead. So, doing all your character sprites in 16x24 and all your tiles in 16x16, then sizing them up in your paint program will probably give you the best results. The game will still be small, but the pixel size will be bigger, so it won't be as much... for ants.

Sorry for the long post. Hopefully this all makes sense. Feel free to ask more questions or for clarifications.

Please don't apologise for the length - this actually makes a lot of sense! Much more than I was getting just muddling through on my own-

Is it fair to say, then, that player characters generally shouldn't be wider than 32 pixels to avoid clipping issues, unless I map the other sprites differently? I'd honestly hoped to avoid having to redo my sprites - I'm not a spriter, or even a general artist, by any means, and it takes me way too long to actually get anything done - but if it's the best option, then I'll have to bite the bullet.

This is also going to sound silly, but how would I size up? As far as I'm aware, that would likely cause JPEG artifacts/blurring to appear on the sprite. Especially if I'm doing them in 16x24 initially - wouldn't take make them smaller to begin with? Or do you mean something else?

I guess another question would be - beyond using a script (which was suggested as well), what would generally be a good size for the sprites to look good on-screen and avoid clipping issues? Ofc I'll need to stick to the 32x32 for the clipping for player sprites, but is there a general guideline to make everything fit to the screen? Or is it mostly just trial and error?

The key here is the length between steps, which is 32px on XP.

What's the closest to what you're looking for?

If the step size you prefer is the one with the small sprites, what you need is a Map Zoom script.

If it's the one with the large sprites (or if you want to use a custom script for that, for example a pixel movement), you basically need to fix the passability issues so you can't get that close to the bed.

Bear in mind whatever option you choose, scaling the map will cause a resolution clash with other things on the game, for example the font, so I recommend being consistent with that choice.

I think, honestly, I prefer the small sprites. My only real issue with the game (as it was) is how small everything looked; Escalus was absolutely right in saying the game looks like it's made for ants. I don't want to lose the style - it's something the friend I'm working with wants to keep for the game - but the original is almost unplayable (or at least deeply irritating to look at).

I'll try the Map Zoom script you suggested - thank you for that! If that can zoom in permanently, then I'll be able to continue with the original sprites and won't have so much of an issue regarding sizing, even if it means other elements may look a bit odd.
Is it fair to say, then, that player characters generally shouldn't be wider than 32 pixels to avoid clipping issues, unless I map the other sprites differently?
That is correct. Unless you map the other sprites to have that extra 16 or so pixels of space, were you to 2x your sprites as is, there would be a clip.

This is also going to sound silly, but how would I size up? As far as I'm aware, that would likely cause JPEG artifacts/blurring to appear on the sprite. Especially if I'm doing them in 16x24 initially - wouldn't take make them smaller to begin with? Or do you mean something else?
Most paint programs (GIMP, Photoshop, SAI/SAI2, Medibang, etc.) have an option to size up or down. Selecting "Nearest Neighbour" when going 200% will ensure you have no blurring upon a size-up. What program did you sprite in?

And yeah, starting small will mean you have less space to work with, but sizing up will make the pixels bigger- so less small scale on your screen.

I guess another question would be - beyond using a script (which was suggested as well), what would generally be a good size for the sprites to look good on-screen and avoid clipping issues? Ofc I'll need to stick to the 32x32 for the clipping for player sprites, but is there a general guideline to make everything fit to the screen? Or is it mostly just trial and error?
If you're going to be using Map Zoom, I'd personally just stick to your original 1x sprites. Map Zoom can basically create the "2x" effect for you from zooming in, but you won't have to deal with any whacky clipping visuals. If you 2x and then Map Zoom, the pixels will be huge and you won't have a lot of room on the screen for much.
That is correct. Unless you map the other sprites to have that extra 16 or so pixels of space, were you to 2x your sprites as is, there would be a clip.


Most paint programs (GIMP, Photoshop, SAI/SAI2, Medibang, etc.) have an option to size up or down. Selecting "Nearest Neighbour" when going 200% will ensure you have no blurring upon a size-up. What program did you sprite in?

And yeah, starting small will mean you have less space to work with, but sizing up will make the pixels bigger- so less small scale on your screen.


If you're going to be using Map Zoom, I'd personally just stick to your original 1x sprites. Map Zoom can basically create the "2x" effect for you from zooming in, but you won't have to deal with any whacky clipping visuals. If you 2x and then Map Zoom, the pixels will be huge and you won't have a lot of room on the screen for much.

I'm using SAI, but for some reason it just didn't click in my mind that the "Resize" option was what you were talking about - I'd never noticed the "Nearest Neighbour" option before, but having done a test, it looks to work perfectly! Thank you for suggesting that. That's genuinely useful in case I accidentally sprite in the wrong size again (which I might, knowing me.)

I'm looking into using Map Zoom now, though I'm having issues actually getting it to work. Admittedly I barely understand how scripts work to begin with, and the instructions weren't as clear as I'd hoped they'd be. Getting a friend to look at that now, though - so if it works, I'll test it and see what it's like. If I don't like it, I'll go back to your original suggestion; 200%-ing smaller sprites, and including a 16 pixel edge on the side when mapping.

Thank you so much for all of this clarification! I've been pulling my hair out over this for days, it's genuinely reassuring to realise a lot of it is much simpler than I'd originally thought, and that I just hadn't considered/understood aspects of the engine prior to designing.

Original thread: https://forums.rpgmakerweb.com/threads/sprites-game-look-too-small-clipping-issues-when-made-bigger-rpgxp.138464/