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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Timer functionality like candy crush.

Discussion in 'Scripting' started by A_never_kill, Mar 16, 2015.

  1. A_never_kill

    A_never_kill

    Joined:
    Jan 7, 2014
    Posts:
    81
    Hi all,
    I am working on the timer functionality like candy crush.I tried that many times but i am not able to do the code.So please share your ideas. i want to increase lives after 28 min .Total lives is 5.

    Thanks
     
  2. Roderyk

    Roderyk

    Joined:
    Mar 5, 2015
    Posts:
    75
    From what I know, it may just be checking a counter agains DateTime.Now. In cundy crush (and maybe mostly other games), changing the clock of the phone (at least offline), it gives you lives as if time actually passed.
     
  3. A_never_kill

    A_never_kill

    Joined:
    Jan 7, 2014
    Posts:
    81
    thanks.but by the way i am doing this with the same but its not working properly.So you have any code?
     
  4. SeasiaInfotechind

    SeasiaInfotechind

    Joined:
    Nov 17, 2014
    Posts:
    32