Technical issue when resizing character sprites

So, recently, I have switched my primary tileset, for my environments/maps. However, I kept the characters from the original tileset and I actually really like the mix between the 2, except for one thing:



As you can see, the characters are too big.

So I used Asesprite to cut them down to 80 percent and I'm very happy with how it looks... Well, again, except for one thing.

As you can see in this following video, there is a little black line when the character goes left, right, and down. I can figure out that this is the shadow from the above character (hence why the down model doesn't have it), but I'm a little confused because the shadow should've also resized properly and uniformly.



The method I used to resize is in Asesprite, going to Sprite, Sprite size, and changing the width and height percentage to 80 percentage. Obviously there is something I'm missing/doing wrong to avoid having that shadow, but I'm glad I figured it out now before I go through the work of resizing hundreds of characters and enemies.

Any help would be appreciated!
yes
the problem here is that the engine bases its sprites on cell-size mathematics.
but when resizing in an image program the formulae used there focus on next pixels without taking cell size into account.

and that has moved some of your sprites outise their cells - the division lines between the cells of your sprites are simply off to what the engine expects due to using different mathematics.

You either need to add or remove a pixel line from the sprite to solve this.

The following tutorial describes the structure needed for the RM engine, it might help you:

yes
the problem here is that the engine bases its sprites on cell-size mathematics.
but when resizing in an image program the formulae used there focus on next pixels without taking cell size into account.

and that has moved some of your sprites outise their cells - the division lines between the cells of your sprites are simply off to what the engine expects due to using different mathematics.

You either need to add or remove a pixel line from the sprite to solve this.

The following tutorial describes the structure needed for the RM engine, it might help you:

Thank you so much for the response. Forgive my ignorance on this, as I'm very inexperienced and just NOT good at the technical stuff so the link is a little much for me to grasp, but is there an extremely easy way for me to first reduce the sprites and then do the same thing with the "cells" in the background so that they line up perfectly and easily?

I'm guessing thats what "canvas size" is under sprite in Asesprite but you cant do it via percentages and need to know number of pixels..?

EDIT: So when I go to Canvas size, it's 936 x 864 pixels. Do I just calculate 80 percent of that and change the canvas size to that??

EDIT 2: Nope, nevermind. That essentially looks like it's just cropping the sprite sheet.
yes, it is about the exact pixel size.
but that size depends on mathematics and no one can tell you the numbers without some details for you.

What is your cell size, the size of a single character picture?
It is the 80% of the original size, but we need that in pixels and not as percentage.
and it's two numbers, width x height
Sure.

So when I open the file, it begins at 936w x 864h.

I change it to 80 percent, which changes those numbers to:

748w x 691h

So, the 748 x 691 is the answer. Not sure if you need to know the above number also since I guess that's currently what the cells are programmed to, right?

is that all the info you need?
EDIT: So when I go to Canvas size, it's 936 x 864 pixels.
  • A normal spritesheet has either:
    • 8 characters (2 rows of 4), or
    • 1 character - if the filename has $ at the start, e.g. $BigMonster.png.
  • Each character block has 4 rows (facing directions) and 3 "stepping frames" (columns).
So, if the sheet has 8 characters and is 936 x 864 px, that means the character size is:
  • Width = 936 / (4 characters * 3 columns) = 936 / 12 = 78 px.
  • Height = 864 / (2 characters * 4 rows) = 864 / 8 = 108 px.
If you just shrink that by 80%, you get fractional values: 62.4 x 86.4. A sprite can only be an integer number of pixels in size, so that causes some frames to be 1 pixel bigger than others.

Instead, you could aim for a frame size of, say, 62 x 86 px. Then you'd resize the sheet to:
  • Width = 62 * 12 = 744 px.
  • Height = 86 * 8 = 688 px.
  • A normal spritesheet has either:
    • 8 characters (2 rows of 4), or
    • 1 character - if the filename has $ at the start, e.g. $BigMonster.png.
  • Each character block has 4 rows (facing directions) and 3 "stepping frames" (columns).
So, if the sheet has 8 characters and is 936 x 864 px, that means the character size is:
  • Width = 936 / (4 characters * 3 columns) = 936 / 12 = 78 px.
  • Height = 864 / (2 characters * 4 rows) = 864 / 8 = 108 px.
If you just shrink that by 80%, you get fractional values: 62.4 x 86.4. A sprite can only be an integer number of pixels in size, so that causes some frames to be 1 pixel bigger than others.

Instead, you could aim for a frame size of, say, 62 x 86 px. Then you'd resize the sheet to:
  • Width = 62 * 12 = 744 px.
  • Height = 86 * 8 = 688 px.
Yes, it is the 8 characters with the 3x4 poses, sorry for not saying that. OK, so you're saying it's the fractional issue possibly causing the spillover, so instead of changing to 80 percentage, just change the pixel category to 744 x 688, correct ( because that is extremely close to what the percentage method changes them to, minus the "spillover" caused by the fractions? )
is that all the info you need?
no, it is not even the correct answer.
you gave an answer of the picture size, of the total number of all cells - but a spritesheet has more than one cell, it has at minimum 12 cells or it would not be a spritesheet.

@caethyril already gave the answer and the mathematics above however, your cell size would be 62x86
no, it is not even the correct answer.
you gave an answer of the picture size, of the total number of all cells - but a spritesheet has more than one cell, it has at minimum 12 cells or it would not be a spritesheet.

@caethyril already gave the answer and the mathematics above however, your cell size would be 62x86
Yes, i apologize, I thought you knew I was giving the number for an 8 character 3x4 style sprite sheet (I'm very new to all this)

And, @caethyril 's solution fixed it. Thank you so much to both of you.
OK, so you're saying it's the fractional issue possibly causing the spillover, so instead of changing to 80 percentage, just change the pixel category to 744 x 688, correct
Yes. The idea is to make sure everything has integer width & height after it has been cut up.

Good to hear it's fixed now! 👋
Yes. The idea is to make sure everything has integer width & height after it has been cut up.

Good to hear it's fixed now! 👋
Ya, you guys rock. Man, there is so much to know with this program. It's kinda fascinating.

Original thread: https://forums.rpgmakerweb.com/threads/technical-issue-when-resizing-character-sprites.168381/