bug @richard help

so there is a bug where you can skip a zone by jumping and if you switch zones wile in the air it puts you in the wrong zone @richard pls help. from stream.

6 Likes

yeah, this can be a little tricky. when you’re doing tilemap transitions inside of a tile overlap event, sometimes the physics engine will detect tile overlaps after you’ve switched the map as part of the same frame. to fix it, you can wrap your code inside of a separately do block from the timers extension so that it runs after the physics have finished.

also, i think you can simplify your code a lot if you were to use the tilemap connection blocks in the tileutil extension. here’s some sample code:

6 Likes