touch screen 2 button interaction
-
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. -
Do you mean two fingers at once, or just have the second button affect the behavior of the first?
-
the second button affect the behavior of the firs.
-
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.
-
thanks toxibunny, I downloaded the 5206 code.
-
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