• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • Scottie, Todd, Serena, Kris - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

How would I create a maze map?

Allgamesdude

The Creator of the WIP game, Pokémon Cosmic. Looki
  • 282
    Posts
    12
    Years
    Hi all. I have a part in my game which has a dungeon esque theme to it. However, its a forest. I want to have it randomly generated, but there are certain events that I need in certain places for the story to continue. How would I make this maze like world? I know I can use variables, and it works, but I have like 20 something variables, because there are like 20 exits. Only one actually leads to the correct area, and the others just teleport the player around the map. How would I make it so the player doesn't land on a tree or something when teleported? Also, how would I accomplish the overall maze dungeon forest thing with a small amount of variables?
     
    I'm not sure it would be the effect you're going for, but have you tried conditional branches?
    You'd only need a single variable for this! You'd need to set your variable control to the one you want to use, keep the operation on set, and make the operand random - let's say, for example, 1 ~ 5.
    This is where your conditional branches would come in. If your variable has been made equal to one, then the player will be transferred to location [a]. On the "else" bit, you would make a new conditional branch - this time, if your variable has been made equal to two, then the player will be transferred to location ; rinse and repeat, so on and so forth. You would transfer the player to random locations each time, and you make sure they don't get stuck! :D Hope this helps.
     
    Thanks! This seemed to solve it perfectly.
     
    Back
    Top