Carry Over Elapsed Time To New World

Discussion in 'How Can I...?' started by Blackthunder, Dec 20, 2021.

  1. Blackthunder

    Blackthunder Boxer

    Joined:
    Dec 9, 2021
    Messages:
    3
    Likes Received:
    0
    Hey Guys, I've been trying to find a solution for this for a while.
    I'm making a game where you're going through a maze, with 9 different worlds where the maze gets more and more difficult.
    I want the timer time to carry over to the next world.
    Does anyone have any idea how I could do that?
    (and is there a way to save this time like a high score?)
    Thanks in advance guys/girls
     
  2. Elite Games

    Elite Games Avid Boxer

    Joined:
    Dec 18, 2019
    Messages:
    184
    Likes Received:
    84
    Save timer value in setting class
    Lets say at level complete

    Settings.currentTime=time;

    Then in next level
    Reassign your time value

    time=Settings.currentTime;
     
    Blackthunder likes this.

Share This Page