Search Unity

  1. Unity 2018.3 is now released.
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. We've updated our Terms of Service. Please read our blog post from Unity CTO and Co-Founder Joachim Ante here
    Dismiss Notice
  4. Want to provide direct feedback to the Unity team? Join the Unity Advisory Panel.
    Dismiss Notice
  5. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice

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:
    4,082
    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. SparrowsNest

    SparrowsNest

    Joined:
    Apr 6, 2017
    Posts:
    966
    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:
    3,114
    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:
    4,082
    filipfici1 likes this.
  7. filipfici1

    filipfici1

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

    xVergilx

    Joined:
    Dec 22, 2014
    Posts:
    1,064
    Hyper hyper casual games man. They're weird.
     
  9. SparrowsNest

    SparrowsNest

    Joined:
    Apr 6, 2017
    Posts:
    966
    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:
    3,114
    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 SparrowsNest like this.