Problem with 2d perspective

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By SkidadleSkadoodle

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)

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!

:bust_in_silhouette: Reply From: kidscancode

You can solve this by using the YSort node.

Thank you so much, that did it!

SkidadleSkadoodle | 2019-12-22 01:14