Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice
  2. Ever participated in one our Game Jams? Want pointers on your project? Our Evangelists will be available on Friday to give feedback. Come share your games with us!
    Dismiss Notice

Endless game issue??

Discussion in 'Scripting' started by Theinsanekiller, Feb 28, 2013.

  1. Theinsanekiller

    Theinsanekiller

    Joined:
    Jun 1, 2012
    Posts:
    27
    Hey all,
    I am just creating an endless game in which i m moving my character and its working fine but the problem comes with frame per second, so i just would like to know that:
    Is it better to use instantiation each pieces of level or is it better reposition each time different object which is already there in scene for this we will have to load a lot at the starting.
     
  2. FuzzyLuke

    FuzzyLuke

    Joined:
    Dec 6, 2012
    Posts:
    40
    Could you elaborate on the problem? Are you have FPS issues ? is that it?
     
  3. Theinsanekiller

    Theinsanekiller

    Joined:
    Jun 1, 2012
    Posts:
    27
    i have FPS problem but i m also confused wether to use instantiate and destroy the platfrom or like i will load 3 pieces of my platfom and will reposition it each time when it goes out of the camera view....
     
  4. yls

    yls

    Joined:
    Apr 13, 2012
    Posts:
    195
    Repositioning without any doubt
     
  5. Theinsanekiller

    Theinsanekiller

    Joined:
    Jun 1, 2012
    Posts:
    27
    But if it goes to, lets say infinite then how it will calculate next position will it cause a problem or not??
     
    Last edited: Feb 28, 2013
  6. FuzzyLuke

    FuzzyLuke

    Joined:
    Dec 6, 2012
    Posts:
    40
    Its only as infinite as your camera can see it, is it not?
     
  7. Theinsanekiller

    Theinsanekiller

    Joined:
    Jun 1, 2012
    Posts:
    27
    yeah it works fine with repositioning only, infinity is not an issue.
    Thanx all for ur priceless time..
     
unityunity