2D Top Down Floor

Updated on January 3, 2019 in  [R] 2D Graphics
Share on Facebook0Tweet about this on TwitterShare on Google+0Share on Reddit0
1 on January 3, 2019

This should be like Unity 101, or any game 101, I can’t figure it out though. I’m working on a top down game but am having trouble with the ground. I make a box collider for the tiles, but it ends up sticking the character on top of the ground tile image instead of being able to walk through it.

I’m trying to make it similar to any typical top down game like LoZ Link to the Past. Am I supposed to make the collider for the level one large box collider and place the graphic tiles on top of it?

  • Liked by
Reply
0 on January 3, 2019

You don’t need a collider for the ground like that.

If this is a 2D game, think about what the collider is doing. The player’s collider and the ground’s are occupying the same space, and since the ground cant move, the player moves out of it.

To stop your player from “falling through” the ground, you just have to tell it to not be affected by gravity. Gravity, in unity, pulls you to the -y, but in a top down game, “down” is +z.

  • Liked by
Reply
Cancel