How to ignore input

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
Peacfulrvr
Posts: 34
Joined: Mon Nov 03, 2014 7:11 pm

How to ignore input

Post by Peacfulrvr » Thu Dec 11, 2014 3:12 pm

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?

magice
Posts: 457
Joined: Wed Mar 18, 2009 12:57 am

Re: How to ignore input

Post by magice » Thu Dec 11, 2014 3:46 pm

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.

Peacfulrvr
Posts: 34
Joined: Mon Nov 03, 2014 7:11 pm

Re: How to ignore input

Post by Peacfulrvr » Thu Dec 11, 2014 4:06 pm

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.

magice
Posts: 457
Joined: Wed Mar 18, 2009 12:57 am

Re: How to ignore input

Post by magice » Thu Dec 11, 2014 4:29 pm

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.
20 years? My rust sometimes comes back after 20 minutes. :oops:

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7228
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: How to ignore input

Post by jacque » Thu Dec 11, 2014 7:17 pm

You could also call flushEvents after the object finishes moving.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Peacfulrvr
Posts: 34
Joined: Mon Nov 03, 2014 7:11 pm

Re: How to ignore input

Post by Peacfulrvr » Fri Dec 12, 2014 5:29 pm

flushevents? I will have to look that one up

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”