Hey all.
I got an awesome random terrain generator working that randomly spawns pyramids all over a desert map. I’d like to make these pyramids into “dungeons” of sorts.
In order to fit the right number of rooms into the dungeon, I wanted to let the player go underground. Because the pyramids spawn randomly on top of the sand, though, the player can’t travel through the sand and into the dungeon.
Making the sand disappear wherever there’s a pyramid seems a bit too complex. I thought of an alternative, which is just moving the dungeon somewhere else on the map and teleporting the player there once they reach a certain point in the “overworld” pyramid. A simple setlocaltranslation should be able to do that.
I was primarily hoping to hear ideas from the community on ways to tackle the issue. Even though physically moving the dungeon and effectively teleporting the player should work, I wanted to see if anyone had any better ideas. Doing this sort of disjointed map approach is common in a lot of games.
Thanks a ton
-Win