How to ignore input
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
- Posts: 34
- Joined: Mon Nov 03, 2014 7:11 pm
How to ignore input
I have a screen that moves an object right and left showing the player how it looks. However, my test show people just start madly clicking away ... once the object starts moving can I stop clicks from effecting the movements?
Re: How to ignore input
The problem is not how to ignore input. That is done with a simple if then statement. The problem is finding the criteria you wish to use for making that decision. In this case, it might be as simple as creating a delay before the control is available again. Perhaps a variable (or custom property) that is set to true when the control is activated, and a send in time that resets it to false.
-
- Posts: 34
- Joined: Mon Nov 03, 2014 7:11 pm
Re: How to ignore input
Now that I read it I am like DUHHH --- that makes sense and I should have known. Thank you for the help. I was a programmer like 20 years ago and am working the rust out of my coding brain.
Re: How to ignore input
20 years? My rust sometimes comes back after 20 minutes.Peacfulrvr wrote:Now that I read it I am like DUHHH --- that makes sense and I should have known. Thank you for the help. I was a programmer like 20 years ago and am working the rust out of my coding brain.
-
- VIP Livecode Opensource Backer
- Posts: 7228
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: How to ignore input
You could also call flushEvents after the object finishes moving.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
-
- Posts: 34
- Joined: Mon Nov 03, 2014 7:11 pm
Re: How to ignore input
flushevents? I will have to look that one up