Sign up ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

Should there be a specific link between the characters height as well as the tile size for the tile maps? That is if a tile is 32x32 does that mean that a character sprite has to be the same size? Also does the size of tiles I use have any great impact on the game itself?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

Your characters do not have to be the same size as the tiles, but you need to keep in mind that they need to align on the same axis. For example, if you make your sprite 64x64 then you need to align them between two tiles rather than one. It's all about how you want to design your tile system. My way is not the only way about doing it as well, others may prefer to keep their characters aligned a completely different way. My way is just an example about how you can go about doing it. Also, sprites being the same size as your tile size makes it easier to program, and you don't have to worry about your sprite being mutilated by tiles that render above the character.

The size of tiles is mostly based on preference of what you want the game to feel like, but it does also affect the performance of the game you are making. The bigger the tiles are, the more the below items are increased.

  1. Memory required.
  2. Slower performance.
  3. Work.

The smaller the tiles you use, the slower the game will be. You need to find a suitable size for your tiles, that gives you the flexibility you want while keeping the game running good.

share|improve this answer
I understand most of your answer but one part is slightly unclear, the size will affect my game internally how so really. It will render slower with smaller tile sizes than bigger ones? –  kabuto178 Sep 28 '13 at 17:19
The way in which you operate it. For example, it will affect how you use your tools and code. It has no external effect, only internal. I updated the bottom of my answer to make it more clear. –  Helladen Sep 28 '13 at 17:59
Understood, thanks for the answer I was beginning to wonder if I had to start over or not. –  kabuto178 Sep 28 '13 at 19:27
Tile size will affect your performance - smaller tiles don't batch nearly as quickly and will result in more draw calls being sent to the GPU. Be weary. –  Vaughan Hilts Sep 29 '13 at 3:01
This answer is not fully correct. Especially seeing the tag AndEngine, you must understand that every tile is simply a sprite rendered at position [tileCol * tileWidth, tileRow * tileHeight]. All sprites are positioned using floats, they do not move from tile to tile (unless you make them so). So you can easily have a character that moves between tiles of arbitrary size or a character that is bigger than a tile. –  sm4 Oct 22 '13 at 8:19

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.