0 votes

So I'm trying to use the ysort functionality with objects in my world and my player. It's working in my editor, but not in game. My player stays overlapping the pillar in-game. The following screenshots are not in-game, they are from the editor, dragging the pillar over the player.

Pillar above player.

Pillar below player.

My layer hierarchy, everything nested in a ysort node.

in Engine by (12 points)

Can you reproduce this in a simple scene with no scripts?

I just tried and yea it works fine in-game with two pillars in a solo scene. This is the only script being used rn besides a script that exclusively centers the window screen. It seems the Pillars have no problem being sorted with each other, but when the player is introduced it gets complicated.

script screenshot

Please log in or register to answer this question.

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.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.