Search Unity

online modification for my game

Discussion in 'Scripting' started by DrunkenChicken, Sep 20, 2014.

  1. DrunkenChicken

    DrunkenChicken

    Joined:
    Sep 20, 2014
    Posts:
    2
    Hello, I created ,,game,, in unity. I would like to put it on web - on my own webpage for example.
    A lot of internet games have a ,,continue button,, in main menu - players can close the game and when they open it again they can load individual level.
    Do you know some tutorials for this?(my game is very simple 2d)
    Thanks for any replyes.
     
  2. SubZeroGaming

    SubZeroGaming

    Joined:
    Mar 4, 2013
    Posts:
    1,008
    Check out the application class for loading scenes. Note that in the web browser, Application.Quit() will not work. You can't close down a game on the web browser.
     
  3. DrunkenChicken

    DrunkenChicken

    Joined:
    Sep 20, 2014
    Posts:
    2
    Yeah, I told this badly - by quiting i mean quiting my (users) web browser, not an application...
    I mean that user will play qame, gets in level 3, he close the game/web browser/computer and when he stars up the game he can play from level 3
     
  4. Brainswitch

    Brainswitch

    Joined:
    Apr 24, 2013
    Posts:
    270
    Check out PlayerPrefs, it will allow you to save (& load) how far the player has come.
     
  5. SubZeroGaming

    SubZeroGaming

    Joined:
    Mar 4, 2013
    Posts:
    1,008
    yeah, playerprefs will save it, and then you can load that level based on what the player pref getINT value is.