Search Unity

Level loading + destroying.

Discussion in 'Scripting' started by Anazoth, Sep 8, 2012.

  1. Anazoth

    Anazoth

    Joined:
    Apr 16, 2012
    Posts:
    38
    Hey, i was wondering what would be the best way to get objects to randomly load as you progress while destroying the ones behind you. I am looking to create a few different parts of the scene and was hoping to get all of these to continue to randomly load in front of you until you die. See the video below for an example.



    Thanks :)
     
  2. RazorCut

    RazorCut

    Joined:
    May 7, 2009
    Posts:
    394
    Make sure you are pooling from a collection of cached and reusable objects. And probably using a hash table or dictionary, presuming you have multiple types. Besides that, just code 'er up!
     
  3. Anazoth

    Anazoth

    Joined:
    Apr 16, 2012
    Posts:
    38
    Can you go into a little more detail? I am a novice coder, recently started learning. I know the basics of setting up hash tables but i've never actually put it into practice :(

    Thanks for the reply :)
     
unityunity