Search Unity

  1. Check out the Unite LA keynote for updates on the Visual Effect Editor, the FPS Sample, ECS, Unity for Film and more! Watch it now!
    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. Improved Prefab workflow (includes Nested Prefabs!), 2D isometric Tilemap and more! Get the 2018.3 Beta now.
    Dismiss Notice
  4. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice
  5. Want to see the most recent patch releases? Take a peek at the patch release page.
    Dismiss Notice

Don't touch the screen challenges!Help

Discussion in 'Scripting' started by filipfici1, Nov 10, 2018 at 6:54 PM.

  1. filipfici1

    filipfici1

    Joined:
    Saturday
    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,017
    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:
    557
    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 LurkingNinjaDev like this.
  4. Antypodish

    Antypodish

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

    filipfici1

    Joined:
    Saturday
    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,017
    filipfici1 likes this.
  7. filipfici1

    filipfici1

    Joined:
    Saturday
    Posts:
    3
  8. VergilUa

    VergilUa

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

    SparrowsNest

    Joined:
    Apr 6, 2017
    Posts:
    557
    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..
     
    VergilUa and Antypodish like this.
  10. Antypodish

    Antypodish

    Joined:
    Apr 29, 2014
    Posts:
    1,940
    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.
     
    VergilUa and SparrowsNest like this.