Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

non y sorted Tilemap layer will show on top of y sorted layer #84086

Open
3koozy opened this issue Oct 27, 2023 · 4 comments
Open

non y sorted Tilemap layer will show on top of y sorted layer #84086

3koozy opened this issue Oct 27, 2023 · 4 comments

Comments

@3koozy
Copy link

3koozy commented Oct 27, 2023

Godot version

4.0.4 , 4.1.2, 4.2b3

System information

Windows 10

Issue description

Hello Guys
when trying to avoid enabling y sort on layer 0 / floor in the tilemap , I faced the below issue:
a tilemap that an artist I hired made for me , she put the origin point of the tilemap node at (0,0) but started drawing in all directions (0+-, 0+-). and I faced an issue turning on Y sort , specifically for tile that were drawn anything above the origin point (0-, 0-) , where sprites in a specific layer (which has y sort enabled) they will be drawn under the tilemap its self (or under Layer 0 / non y sorted layer) 😭 .

The only solution I was able to think of is to drag all the tiles to the region under (0+,0+) , but it was impossible to do due to the size of the tile map and because it has so many layers (i can only drag on layer at a time).

Because otherwise , when I enable y sort on layer 0 , I have to adjust the origin point for all other tile to be below origin point of floor tiles which is pain and will not allow me to add common gameplay scenario (ex : show player behind , in front of tree tiles).

I will attach two gifs to explain , please help😊

video_issue.mp4

Steps to reproduce

you can draw tiles on the tile map above the origin points , then enable y sort on the tilemap node and the specific layer your tiles on.

Minimal reproduction project

Tilemap_Issue.zip

@3koozy 3koozy changed the title non y soerted Tilemap layer will show on top of y sorted layer non y sorted Tilemap layer will show on top of y sorted layer Oct 27, 2023
@Calinou
Copy link
Member

Calinou commented Oct 27, 2023

4.0.4

Please test this on 4.1.2 and 4.2 beta3. Numerous changes have been made to TileMap rendering since 4.0.4.

@3koozy
Copy link
Author

3koozy commented Oct 28, 2023

Thanks for the fast feedback @Calinou
I tried to re-create the same scenario in both v 4.1.2 & 4.2b3 (see files below).
and unfortunately the same issue happens (sprites/ Layer 1 tiles above the tilemap origin point are displayed beneath all non y sorted layers , ie the tilemap node its self , but sprites / layer 1 tiles under the origin point doesn't have this issue ^^")

image

Tilemap_Issue_4.2b3.zip
Tilemap_Issue_4.1.2.zip

@3koozy
Copy link
Author

3koozy commented Oct 29, 2023

could below pull requests be related to this case ?
#79452
#73813

@dicarne
Copy link

dicarne commented Dec 13, 2023

In my case, it looks like the layers without y sort turned on are y sorted as a whole, resulting in covering all objects with y sort turned on, even if they are not in this tilemap.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants