Microsoft MakeCode

Is there a way to make the border of the tilemap not solid

I want my sprite to be able to leave the edge of the tilemap, for example, being able to fall off the bottom of the screen and not hitting your head on the ceiling in a platformer, but the edges of the tilemap are being treated as solid walls. Is there any way to turn off these border walls?

I’m afraid not.

The easiest way to achieve that behavior is to make your tilemap have a few extra rows and columns that go off screen. Of course, if you do that you’ll need to make sure that the camera never pans too far and shows those “empty” tiles. Here’s some example code that does that:

Would It work if you made your sprite a ghost?

it would only go through walls instead of the barrier