The wrong image is chosen for Event. [MZ]

I replaced some images in the !Other2 file with a two-tile high tree. The tree didn't fit as it was a few pixels too tall. So I changed the dimensions of the file from 576x768 to 580x776, the tree now fits but when I go to set the image for the event, the image of the statue is chosen.
Image Issue..png
It's like that for all images I try to choose using that file.

I didn't want to just resize the tree because I want consistency in sprite sizes and I'm no pixel artist.
two possible causes:

all cells of the spritesheet need the same size, you cannot mix different sizes together.
and the cell size is mathematically calculated as picture widht / 12 and picture height /8.

580/12 is 48,333 and 776/8 is 97 - that is not a valid cell size because cell sizes need full pixel numbers and 48,33 is not a full number.

It will be much easier for you to create a new spritesheet with whatever cell size you need for the tree instead of trying to fit the tree into a spritesheet of a different cell size.

this tutorial might help you:


The other problem is that you'll need direction fix to prevent the automatic turning
two possible causes:

all cells of the spritesheet need the same size, you cannot mix different sizes together.
and the cell size is mathematically calculated as picture widht / 12 and picture height /8.

580/12 is 48,333 and 776/8 is 97 - that is not a valid cell size because cell sizes need full pixel numbers and 48,33 is not a full number.

It will be much easier for you to create a new spritesheet with whatever cell size you need for the tree instead of trying to fit the tree into a spritesheet of a different cell size.

this tutorial might help you:


The other problem is that you'll need direction fix to prevent the automatic turning
Oh, I understand. Thanks for the link. I hope I can manage this because I am hopeless when it comes to math, it's a miracle I didn't get held back in school. I might also have dyscalculia.

So, if the image for the tree is 48x96 pixels, then would I need to multiply 48 by 12 and 96 by 8 to get the total pixel dimensions of the new spritesheet?

And I know about direction fix, it is crucial to what I want to do. The image wasn't turning, it was just not correct.
So, if the image for the tree is 48x96 pixels, then would I need to multiply 48 by 12 and 96 by 8 to get the total pixel dimensions of the new spritesheet?
yes, although from your first post those are the wrong numbers.

The original size of 576x768 corresponds to a cell size of 48x96, and that was too small for your tree.
you added 4 and 8 pixels, resulting in a cell size of 52x104 pixel to fit the tree.
That would result in a spritesheet of 624x832 pixel (8 sprite sheet) or 156x416 pixel (with $, single sprite sheet).

But since I suspect that you just estimated those 4 and 8, I suggest you carefully count the size needed for the tree again before calculating the size of the spritesheet.
yes, although from your first post those are the wrong numbers.

The original size of 576x768 corresponds to a cell size of 48x96, and that was too small for your tree.
you added 4 and 8 pixels, resulting in a cell size of 52x104 pixel to fit the tree.
That would result in a spritesheet of 624x832 pixel (8 sprite sheet) or 156x416 pixel (with $, single sprite sheet).

But since I suspect that you just estimated those 4 and 8, I suggest you carefully count the size needed for the tree again before calculating the size of the spritesheet.
I had to change the dimensions of the sheet because I wanted a different tree, but everything fits now. Thank you so much!

Original thread: https://forums.rpgmakerweb.com/threads/the-wrong-image-is-chosen-for-event-mz.178610/