Navigation

    Fuze Arena Logo
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Help
    • Discord

    touch screen 2 button interaction

    Beginners
    4
    6
    525
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      mikeb109 last edited by

      Hi All,
      does any one have a small program that shows how to use 2 buttons using touch screen.
      I want to push button 1 and have it do some action. Push button 2 and it changes what action button 1 does.
      the idea is that I can add more buttons and have them interact with each other.

      1 Reply Last reply Reply Quote 0
      • Devieus
        Devieus last edited by

        Do you mean two fingers at once, or just have the second button affect the behavior of the first?

        1 Reply Last reply Reply Quote 0
        • M
          mikeb109 last edited by

          the second button affect the behavior of the firs.

          1 Reply Last reply Reply Quote 0
          • PickleCatStars
            PickleCatStars F last edited by

            I’ve shared a couple of programs that may be useful to look at.

            https://fuzearena.com/catalogs/view/5207

            https://fuzearena.com/catalogs/view/5206 (An earlier simpler version of the above)

            https://fuzearena.com/catalogs/view/5105 (a very simple touchscreen button push example)

            Handling the touch screen is a little quirky in that you have to first determine if it’s being touched at all before finding out where it’s being touched. After that it’s going to be a load of variables keeping track of what’s being touched, and a load of if… then stuff for actually doing the thing you want. My advice is to start off simple.

            1 Reply Last reply Reply Quote 3
            • M
              mikeb109 last edited by

              thanks toxibunny, I downloaded the 5206 code.

              1 Reply Last reply Reply Quote 1
              • vinicity
                vinicity F last edited by

                If you want more examples, here are some of my games that also uses the touch screen:

                https://fuzearena.com/catalogs/view/5011
                https://fuzearena.com/catalogs/view/4771

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post