Enemy only door

Help i need to make it so that the grey

block is a boss only door for my tower

defence game!!

5 Likes

I don’t think that anybody’s made that before though Im interested to see if anybody else responds

2 Likes

Ok so how I did this was I added these two tiles, one for making the boss phase through walls and one for ending the wall phase effect:


Then I made these tiles turn on and off the “Ghost through walls” sprite flag on the boss:

Then I removed this bit of code cause it was causing troubles and making the normal enemies enter the wall:

I hope this solution works for you!

2 Likes

Use sprite tilemaps to give the boss a different tilemap walls

4 Likes

When woofwoof likes something it must be a good post

1 Like

Setting ghost mode on tile overlaps is the ultimate cheat code for when tilemaps refuse to cooperate