2
\$\begingroup\$

I'm working hard in a 2D platform game, as far as I got is a standard 2D view (only x and y are visible)

But I want to change the perspective so I can see the floor also.

But the MapBuilder I developed works perfectly based on TILES (so my 2D works very well)

I wanna know the easiest way to add the ground on top of the floor without switching to full 3D with rotationed Rectangles.

The best I tought is to create a "magic" rectangle on top of my ordinary floor to make this fake perspective. But this still lead me to problems on multi-floors.

\$\endgroup\$
  • 4
    \$\begingroup\$ Can you post a screenshot, for reference? \$\endgroup\$ – Seth Battin Apr 11 '14 at 1:29
3
\$\begingroup\$

These are the two main solutions I can think of:

  • If you use tilesets, add a rectangle on top of your tiles. You should also move the collision detection up a bit, not to have your character walking on the edge of the blocks. However, this can easily look like the character's feet are passing through the ground but it mostly depends on the quality of the tiles. Here is an example where it looks very good to me.

Example of 2D game

  • If you use "plain" images you have to draw the upper part too, where the characters are walking. The collision detection should be a little upper or else it will look weird.

Example of 2D game

This is just a display change, it can't bring other problems than looking weird or ugly.

\$\endgroup\$
  • \$\begingroup\$ Well a Tileset approach would works perfectly and it is the kind of "fake" perspective I would like to try... i'll mark this as right as soon as i get a sample working \$\endgroup\$ – Marcos Vasconcelos Jul 3 '14 at 23:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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