Cathy

Veteran
Veteran
Joined
Jun 3, 2021
Messages
31
Reaction score
42
First Language
french
Primarily Uses
RMMZ
Hello everyone,

I'm quite new to rpg maker and I have a problem with the events not snapping to the grid.

To be a bit more clear, i create an image using 48px by 48px grid, I align that image to the bottom and when I render in rpg maker it tilts the image up a few pixels.

Exemple Event image : 3 squares height (3x48px) with one black line on top and bottom as reference.
1.png

Exemple when the event is created in rpg maker ( the square are 96px x 96px):
2.png

When it's rendered, we can see that both black lines are too high compared to the grid.
3.png

It's a parallax background by the way but I don't think it plays a role in this tilt.
 

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
3,757
Reaction score
2,851
First Language
English
Primarily Uses
RMMZ
Does the filename for the graphic have a ! on the beginning of it?
 

Cathy

Veteran
Veteran
Joined
Jun 3, 2021
Messages
31
Reaction score
42
First Language
french
Primarily Uses
RMMZ
No it didn't, I tried with it and it corrected the tilt.
Thank you very much, I struggled with that all day.

Why does it need a ! to fit the grid ?
 

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
3,757
Reaction score
2,851
First Language
English
Primarily Uses
RMMZ
No it didn't, I tried with it and it corrected the tilt.
Thank you very much, I struggled with that all day.

Why does it need a ! to fit the grid ?
By default, any character that doesn't have it is offset vertically by 6 pixels to line up better with cliff edges etc. and they also appear with their feet partially transparent on "bush" tiles. The ! stops these effects from being applied.
 

Cathy

Veteran
Veteran
Joined
Jun 3, 2021
Messages
31
Reaction score
42
First Language
french
Primarily Uses
RMMZ
This is a little trick that could have been painfull to correct.

Thank you again for sharing your knowledge.
 

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
3,757
Reaction score
2,851
First Language
English
Primarily Uses
RMMZ
Always a pleasure. :)
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
33,745
Reaction score
8,519
First Language
German
Primarily Uses
RMMV
basically the original tilesets are designed to follow a square grid and NPCs would look bad if they were walking on the grid border instead of inside the grid.That is why the default sprite (which is assumed to be a person) is displaced upward.

however that would look bad for objects that need to be aligned to the grid, like doors or so.
So Sprites that have their filenames beginning with ! are designated as object sprites and disable all the special people functions - check the default sprites, all spritesheets with objects have that ! in the name.
 

Cathy

Veteran
Veteran
Joined
Jun 3, 2021
Messages
31
Reaction score
42
First Language
french
Primarily Uses
RMMZ
I divided by 4 most of the size of my images with using the $ sign :rock-right:
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
43,451
Reaction score
15,231
First Language
English
Primarily Uses
RMMV

I've moved this thread to MZ Support. Thank you.

 

Latest Threads

Latest Posts

Latest Profile Posts

RMMV - Skip script errors:

For game developer testing purposes.
You know, I really get to farm likes since I post all of @Avery and @hiddenone 's blog tutorials on the forums...
Back from a very long hiatus with a new project woo
This is my battler placeholder image trying out art styles too I want to fake a backview battle system
I think I will want portraits and battle sprites to be 2D and stick to pixel art for overworld not 100%sure but pretty sure its easier to make pixel art for overworld sprites, events and maps and stuff.
Placeholder.png
$Syringer.png
toying with a brand new monster design
Another doodle! Green-haired girl has no name yet, so, any suggestions?
She is about the same age as Nikki, and she is the last one of her clan, known for their innate skills in manipulating both ice and fire. She is a bit stubborn, as well as having a soft spot for kids.

Forum statistics

Threads
115,438
Messages
1,089,924
Members
150,213
Latest member
117
Top