#You mean completely erasing it
1 messages · Page 1 of 1 (latest)
Can you explain like, in very basic terms what you want to happen to the tile and why
I want my character to be seen behind the building
I am using a sprite mask for that purpose
But sprite mask alone does not function very good
Cause even if my character is staying "in front" of the said building, sprite mask does not care and applies it effect anyway
So what I did is wrote a script which checks if the tile "below" is not null, and if its tilemap's renderer sorting order is the same as the character's
But now there is a problem with how densely packed tilemaps are behaving
At this point I need to either rewrite my code completely or distribute sprites into different tilemaps
And at this point I can as well use individual sprites
My first idea would be to draw the fronts of buildings on the ground tilemap which the player is always on top of, and the top parts of the buildings on a different tilemap which the player gets always masked through
Very thin objects like trees would still be sprites
This has been my go-to for buildings as well
Tilemaps have more limitations than sprites due to being effectively one procedural sprite collectively, but you'd still use it over sprite when there's way too many individual parts to place and render without it
I see
Well, I am thinking about what you said earlier
If disabling the sprite is the same as removing a tile
That I'm not sure about
I guess, there is a way to do this? I will have to store all the deleted tiles, their positions in a list, and then, when I need to bring them back, just do so
It is a bother, ofc, but, I guess, it solves some of my headache
My current set up works pretty good with buildings. The problem I am having now is how it works with trees
Yes, it seems you can't hide a tile without clearing the cell itself so it'd be a solution to keep a reference copy of the cells to re-add them from
But that sounds like a headache to me on its own
Maybe it's not to you!
Why not keep the buildings as they are but use sprites for the trees?
Yeah, might as well
Thanks, Spazi
It doesn't seem like this channel has a lot of people who answer questions, so thanks a bunch
Most of the people in here who answer questions don't use tilemaps, despite the same few questions about tilemaps being like 80% of the posts in here.
They won't make a tilemap channel though.
Not even I use tilemaps, heh
Maybe all those tilemap people could combine their powers to help each other
Just saying, it is hardly fair to insult everyone when they have no reason to know the answers to their questions.
Who's insulting who?
It doesn't seem like this channel has a lot of people who answer questions I hear this sort of things constantly and it hurts.
Oh
I wouldn't take it as an insult
There's like two of us on a good day so it doesn't seem untrue