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

need some tips

Discussion in 'Scripting' started by switchluts, Apr 6, 2019.

  1. switchluts

    switchluts

    Joined:
    Mar 18, 2019
    Posts:
    45
    So I'm making this game where you move by touching the screen but I also want you to switch places if you have one finger on the screen and then tap with a second finger however I don't want the player to switch with every tap or two taps just if one finger is one screen and they tap with the other
    is this hard to do
    can someone give me some tips?
     
  2. LMan

    LMan

    Joined:
    Jun 1, 2013
    Posts:
    493
    • Design
      • Touch controls shouldn't be confusing for the player. Be careful of designing controls that can be activated by mistake. Consider adding a graphical animation around the touch that changes to signify that the secondary action is about to be activated.
    • Implementation
      • It isn't hard, but it will not be easy for someone unfamiliar with programming.
      • What you want can be done with the Input class.