Hey I need help with a bug in my game

the bug is where if you go through the platform on level 5 (you can go to any of the levels easily with the number keys) and walk over to the edge of the map you go outside of the tilemap and either the sprite gets destroyed or something weird happens to it

1 Like

Your issue stems from the fact that the outside of tilemaps are just walls, so by turning on “ghost through walls” that allows the sprite to go outside the tilemap. Instead, you could turn off and on the walls of those specific tiles, like this:


You might need to increase the time before the switch back, as I did see some glitchy behavior. Maybe a better way would be to check if the player is not touching any of those tiles, but there isn’t really a specific block for that, so it would take more work.

1 Like

thanks for the help it works great =D

2 Likes