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. Dismiss Notice

how should I do it perfectly .

Discussion in 'General Discussion' started by Abhijit-Mukherjee, Mar 10, 2015.

  1. Abhijit-Mukherjee

    Abhijit-Mukherjee

    Joined:
    Jan 9, 2015
    Posts:
    193
    Hi My dear friends,

    I have created one level of 2d platform game .. while my hero die , I am reloading the whole level by application.loadlevel (current level ) .

    is it correct way to do ? :rolleyes:


    Thanks
     
  2. GarBenjamin

    GarBenjamin

    Joined:
    Dec 26, 2013
    Posts:
    7,441
    What does your design say is needed? If the level is supposed to reset then you are doing it the right way. If the level state should remain as it was when the player died then it would not be the right way or at least not the simplest way.
     
  3. Abhijit-Mukherjee

    Abhijit-Mukherjee

    Joined:
    Jan 9, 2015
    Posts:
    193
    my game design says that if player loos all his life then all score should be reset .. and player position should start from beginning ... level will not change
     
  4. Abhijit-Mukherjee

    Abhijit-Mukherjee

    Joined:
    Jan 9, 2015
    Posts:
    193
    I am making it for mobile ..
     
  5. Neoku

    Neoku

    Joined:
    Oct 27, 2014
    Posts:
    261
    Thanks[/QUOTE]
    application.loadlevel looks as the better choice in your case.