0 votes

Hello,

I'm trying to make a 2d point-and-click game for a game jam. I'm still on the prototyping phase, but I noticed a problem with the 2d perspective where objects are getting in front of the player when they aren't supposed to

Here's an example: (Ignore the graphics, they are just placeholders)

enter image description here

Is there any way of simulating perspective in 2d with Godot?

By the way, sorry for the bad english, it's not my first language.
Thanks in advance!

asked Dec 22, 2019 in Engine by SkidadleSkadoodle (15 points)

1 Answer

+1 vote
Best answer

You can solve this by using the YSort node.

answered Dec 22, 2019 by kidscancode (17,714 points)
selected Dec 22, 2019 by SkidadleSkadoodle

Thank you so much, that did it!

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.