I’m trying to make a tilemap disappear without destroying it. I tried to use: $TileMap.hide(). However, this did not deactivate the tilemap’s collision. I also tried to do $TileMap.layer_0.enabled = false and just $TileMap.enabled = false, but these also didn’t work. I couldn’t find a solution on the internet, so if someone could help me I’d be thankful.
That’s because it isn’t. You can’t just dream up function names and expect it to work somehow! Anyway, here’s how to actually change the mask from code: