Search Unity

Best method of procedural environments

Discussion in 'Editor & General Support' started by yuze, Jul 7, 2013.

  1. yuze

    yuze

    Joined:
    Dec 17, 2012
    Posts:
    42
    Hi guys, I'd like to start making a game of my own but to make sure players dont got bored of a static environment I noticed games like subway surfers/temple run generate environments randomly.

    Do you have any advice on how to do this for a novice? I'll be using playmaker or uscript. Thanks!
     
  2. brianasu

    brianasu

    Joined:
    Mar 9, 2010
    Posts:
    369
    From what I see they generate a serious of 3D tiles that connect together perfectly. When the player is running along they just instantiate the 3D tile in front of the player.

    If I was working on one I would keep the player centered and let the world scroll around him. When dealing with 3D coordinates it's best to keep the positions close to the origin or you lose precision.