0 votes

In my project I'm trying to have a perspective similar to 2D Zelda or Final Fight--as in, top-down but slanted. As a result, I'd like to display certain objects so that when the player walks in FRONT of it, the player overlaps, but when the player walks BEHIND it, the object overlaps the player (normal perspective stuff). Is this difficult to pull of, and how do I do it?

Example of what I mean.

Thank you in advance!

asked Dec 30, 2019 in Engine by zagaron321 (12 points)

1 Answer

0 votes

This is called "y-sorting" and can be done using this node: https://docs.godotengine.org/en/3.1/classes/class_ysort.html

Essentially it draws objects in order of their y coordinate value.

answered Dec 30, 2019 by kidscancode (17,714 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.