I was wondering How the Random Function in the Galaxy Editor Works. Can It be given a seed? I need it for generating random dungeons. Im about 50% done with the actual Terrain Generation. However I would like to make it so that if you go from floor 2 to floor 10 then back to floor 2 It will be the same as the first time you saw it. And each "Floor" it reuses the same area to generate the dungeon.
Anyway id like to know if and how this would be possible
You can set the random seed with the Set Random Seed function, and whenever you set the random seed, it basically resets it. So anytime you want to regenerate the terrain for a floor just set the seed to the seed assigned to the floor before you start generating the terrain, and it should create it the same way every time.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hello.
I was wondering How the Random Function in the Galaxy Editor Works. Can It be given a seed? I need it for generating random dungeons. Im about 50% done with the actual Terrain Generation. However I would like to make it so that if you go from floor 2 to floor 10 then back to floor 2 It will be the same as the first time you saw it. And each "Floor" it reuses the same area to generate the dungeon.
Anyway id like to know if and how this would be possible
You can set the random seed with the Set Random Seed function, and whenever you set the random seed, it basically resets it. So anytime you want to regenerate the terrain for a floor just set the seed to the seed assigned to the floor before you start generating the terrain, and it should create it the same way every time.