Question regarding tilemap sizing relative to sprite

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By eviking

I’ve been struggling the past few days on how to scale everything correctly as I move forward with new projects.

Right now I am experimenting with a player character that is 16x32, and my tileset is 16x16. Other assets will be either 16x16 or 16x32. But my question is this - does my character height have to be exactly 32 pixels high? can it be 30 pixels high? How does this affect and mess up things later on? This is a little frustrating to me because if I go by these exact world block sizes, then all my enemies and such would be exactly the same size.

Also, If I plan to have door, my character is the exact same height of the door, which looks kinda dumb (see below). And can I work with two different tilesets - a 16x16 tileset and a 32x32 tileset? I know as I get further along and get away from blocks I will have less blocky sprites, but again, do I have to take up the whole top to bottom of a 16x16 block? Also my game resolution is 384x216 if that helps.

Example screenshot

Any insight would be really helpful. Thanks.

:bust_in_silhouette: Reply From: njamster

does my character height have to be exactly 32 pixels high?

No. What makes you think so?

can it be 30 pixels high?

Sure, why not?

How does this affect and mess up things later on?

That is a very broad question! The answer depends a great deal on the kind of game you’re trying to create! I doubt anyone can give you an exact answer to that. Actually that’s a question you should ask yourself: What could go wrong?

And can I work with two different tilesets - a 16x16 tileset and a 32x32 tileset?

Sure, just create two TileMap-nodes with different properties.

but again, do I have to take up the whole top to bottom of a 16x16 block?

Again: no!

Perfect, thank you for the straightforward answer.

I was originally worried because I was reading up on how it is recommended to keep a consistent tile size because it will mess up your foreground and background depth perception, and it just won’t look right. I plan on sticking with 16x16 as my world unit size, and then slightly scaling certain sprites.

eviking | 2020-05-04 12:35