Search Unity

In-game tutorial section/scene

Discussion in 'Game Design' started by adam_beers, Nov 25, 2017.

  1. adam_beers

    adam_beers

    Joined:
    May 15, 2017
    Posts:
    2
    I'm trying to have a tutorial section at the start of my game to tell the user how to play. But, I would need to pause the game behind while the popup/dialog is displayed. I think I have an idea for the popup: have a boolean flag to create the text display (and action animation) on the first entry or start of the main game scene. Have it disappear when the user does the action. But how do I pause the game in the background? Or should I do something else for the tutorial?
     
  2. EternalAmbiguity

    EternalAmbiguity

    Joined:
    Dec 27, 2014
    Posts:
    3,144
    Ever worked with Time.timeScale before?
     
  3. adam_beers

    adam_beers

    Joined:
    May 15, 2017
    Posts:
    2
    No, I haven't. Just did a little research and I tried it out, but I can't get input to work when it is set to 0.
     
  4. Habitablaba

    Habitablaba

    Joined:
    Aug 5, 2013
    Posts:
    136
    you could set a bool called 'paused' or something like that. Make it true when the pop up is visible, and false otherwise. Then make the first line in your updates check that bool. If it is true, return. Anything you want to do all the time (like input) you could move to above the bool check.