Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

Random world generation

Discussion in '2D' started by lucasosborne25, Aug 5, 2020.

  1. lucasosborne25

    lucasosborne25

    Joined:
    Aug 5, 2020
    Posts:
    2
    Hi, i'm fairly new to unity and only have created a few 2D games with unity i have been trying to learn random world creation but haven't found anything useful to me so far because of most tutorials and forums they only talk about small amounts of tiles that are more or less the same shape and type. any help is appreciated.
     
  2. Lo-renzo

    Lo-renzo

    Joined:
    Apr 8, 2018
    Posts:
    1,319
  3. lucasosborne25

    lucasosborne25

    Joined:
    Aug 5, 2020
    Posts:
    2
    I have seen tutorials about perlin noise but never used it because i couldn't see how i could put my assets into it and how i could convert it to 2D
     
  4. Derekloffin

    Derekloffin

    Joined:
    Mar 14, 2018
    Posts:
    322
    Noise functions just give you back some numeric value. You need to then translate that into something useful for yourself. For example, you can use Perlin noise to translate into the biome of an area by saying all values greater than .8 are snow, .6 are forest, .4 are plains, .2 is beach and anything less than that is water. Obviously, that's just a very simple solution. You have to look into each function and what it gives you.