Search Unity

Don't touch the screen challenges!Help

Discussion in 'Scripting' started by filipfici1, Nov 10, 2018.

  1. filipfici1

    filipfici1

    Joined:
    Nov 10, 2018
    Posts:
    3
    Hello! Before i start i want to apologize for my bad English! I have problem i want to make game where have challenges like, if you don't touch screen for 5 min you will earn 50 coins, but i don't know script can somebody help me.Thanks in advance.
     
  2. Brathnann

    Brathnann

    Joined:
    Aug 12, 2014
    Posts:
    7,187
    Create a timer. Create a script to handle touches. If a touch is detected before the timer runs out, then they don't win. Either end the level or restart the timer.
     
    filipfici1 likes this.
  3. SparrowGS

    SparrowGS

    Joined:
    Apr 6, 2017
    Posts:
    2,536
    why would you do this?
    what kind of a challenge is that?
    just put the phone down and do something else in the meanwhile?
    you wanna keep the player engaged imo
     
    Antypodish and Lurking-Ninja like this.
  4. Antypodish

    Antypodish

    Joined:
    Apr 29, 2014
    Posts:
    10,769
    Or switch process and watch some videos ;)
    however, if cleverly done, my not work ...
     
  5. filipfici1

    filipfici1

    Joined:
    Nov 10, 2018
    Posts:
    3
    thank you so much,but can you tell me script for touch. I'm begginer :(
     
  6. Brathnann

    Brathnann

    Joined:
    Aug 12, 2014
    Posts:
    7,187
    filipfici1 likes this.
  7. filipfici1

    filipfici1

    Joined:
    Nov 10, 2018
    Posts:
    3
  8. xVergilx

    xVergilx

    Joined:
    Dec 22, 2014
    Posts:
    3,296
    Hyper hyper casual games man. They're weird.
     
  9. SparrowGS

    SparrowGS

    Joined:
    Apr 6, 2017
    Posts:
    2,536
    that's so casual you'll end up falling asleep, haha

    never got this type of game, this and cookie clicker type stuff, just watch a movie if you don't wanna play a game..
     
    xVergilx and Antypodish like this.
  10. Antypodish

    Antypodish

    Joined:
    Apr 29, 2014
    Posts:
    10,769
    I would add a bit 180 flip to it. Don't stop touching for 5 min. (What she s...) :p
    You can not take finger off. And make target moving.
     
    xVergilx and SparrowGS like this.