Game bug!

Hello everybody! I am creating a new game, and when you enter some rooms, there is a chance that you get put in the wrong room! I have no idea why, as I checked over all my code and see no issues, but if anyone knows what is going on, that would be super helpful! https://arcade.makecode.com/S96591-72805-16960-36370

i’m not sure what the bug is, but the logic you have for loading maps is pretty complicated and i’d guess that’s where the issue is.

the tile-util extension has some blocks to make this easier:

image

here’s an example project:

1 Like

Thanks!