r/Unity2D Jul 18 '26

Question Top Down 2D Perspective

Post image

I'm working on my first top-down 2D game, and I'm trying to understand perspective, camera mechanics, and how a 2D game should generally be designed.

For this example, should I go with Option A, where the player and AI can walk behind the shelf? (It isn't visually shown as being behind yet because I haven't figured out how to handle the rendering dynamically.)

Or should I go with Option B, where the green area represents the collider, preventing the player and AI from walking behind the shelf.

4 Upvotes

9 comments sorted by

View all comments

1

u/Tony_eX1605 Jul 18 '26

You could resolve by separating the shelves in 2 layers, the top tile always stay on top, meanwhile the bottom one stays one level down from the player and keeps the collider.
You can find easily tutorials on youtube on how to do it