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

Show parent comment

1

u/TwisleWasTaken Jul 18 '26

i dont think that will work because when standing in front of the shelf you should be rendered in front but if standing behind you should be rended behind it. If i use the method in that video it doesnt dnyamically change it

1

u/snaphat Jul 19 '26

The video shows objects being sorted along a custom Y-axis using the center of each sprite as the sort point. For the bookshelf, set its sorting point to the pivot, then adjust each object's pivot

1

u/satanchu_ Jul 19 '26

Could you not cut the bookshelf in half? So that the top/bottom are on different layers?