Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Resolved Spawning Players When Terrain Is Generated

Discussion in 'Netcode for GameObjects' started by cashoto13, Dec 1, 2023.

  1. cashoto13

    cashoto13

    Joined:
    Dec 29, 2022
    Posts:
    8
    So I'm making a multiplayer 2D sandbox, where everything is procedurally generated using perlin noise. When the game starts, I am trying to teleport the player to where I want them to spawn, however, because it is procedural, I can't figure out how to set a spawnpoint that would change everytime it is run.
     
  2. RikuTheFuffs-U

    RikuTheFuffs-U

    Unity Technologies

    Joined:
    Feb 20, 2020
    Posts:
    437
    You could make sure that, during the procedural generation, the spawn points are always in a place that the player could get into.
    It sounds like a game-specific problem, not something really netcode-related.