How do I recreate the same land chunk without storing its data?

0 favourites
  • 2 posts
From the Asset Store
Create a boss fight with this easy to follow game pack. Recreate the classic attacks of Mutoid Man from Super Smash TV
  • I'm using Advanced Random plugin. I'm also creating land chunks and destroying them when the player is far enough. But It seams that the time when it happens also matters, not just the coordinates. Is it possible to eliminate the time factor of the RNG system and get the same random results for the same seed so I can recreate the same land chunk in the same coordinate as needed?

    Tagged:

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • The time should only matter if there were other random operations performed in between. If you set the seed immediately before generating the land terrain, it should always come out the same.

    I don't know your game, but you can probably prepare lots of random seeds for the entire level and store them in an array. When you need to generate or re-generate a chunk of land - get a seed for it from the array and run your land generation code with this seed.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)