#You mean completely erasing it

1 messages · Page 1 of 1 (latest)

forest crystal
#

Can you explain like, in very basic terms what you want to happen to the tile and why

stone nacelle
#

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

forest crystal
#

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

wide wren
forest crystal
#

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

stone nacelle
#

I see

#

Well, I am thinking about what you said earlier

#

If disabling the sprite is the same as removing a tile

forest crystal
#

That I'm not sure about

stone nacelle
#

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

forest crystal
#

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!

forest crystal
stone nacelle
#

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

lyric tinsel
#

They won't make a tilemap channel though.

forest crystal
#

Not even I use tilemaps, heh
Maybe all those tilemap people could combine their powers to help each other

lyric tinsel
#

Just saying, it is hardly fair to insult everyone when they have no reason to know the answers to their questions.

lyric tinsel
#

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.

forest crystal
#

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