7 votes Vote

Add back randomise seed at Runtime functionality

Add back the "Randomise seed at start" function from Map Magic 1

Kyle Solomi , 13.07.2020, 18:03
Idea status: completed

Comments

Wraith, 02.07.2021, 21:49
You can change the seed at starting a game on executing this line in Start/Awake/OnEnable:
mapMagic.graph.random = new Noise(seed, permutationCount:32768);

Keep no tiles pinned (otherwise they won't connect with new tiles with new seed).
This script is changing your graph (seed value) every start, this value is stored in graph asset.
Make sure that 'MapMagic' and 'Den.Tools' namespaces are used.
Here is the example script: https://www.dropbox.com/s/qb7u9wqn8mh6ig8/NewSeedOnStartup.cs?dl=0

Leave a comment