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?


1 Answer 1


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.

  • \$\begingroup\$ 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? \$\endgroup\$
    – kabuto178
    Commented Sep 28, 2013 at 17:19
  • \$\begingroup\$ 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. \$\endgroup\$
    – Helladen
    Commented Sep 28, 2013 at 17:59
  • \$\begingroup\$ Understood, thanks for the answer I was beginning to wonder if I had to start over or not. \$\endgroup\$
    – kabuto178
    Commented Sep 28, 2013 at 19:27
  • 1
    \$\begingroup\$ 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. \$\endgroup\$ Commented Sep 29, 2013 at 3:01
  • 1
    \$\begingroup\$ 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. \$\endgroup\$ Commented Oct 22, 2013 at 8:19

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .