mouse is down on Android
Chris Sheffield
cmsheffield at icloud.com
Wed May 8 12:31:39 EDT 2013
Dan,
This is just a suggestion, not sure if it will help or not. Try adding with messages to your wait command. You could also try touchEnd instead of touchStart. Again, not sure if that would make a difference or not.
Chris
--
Chris Sheffield
Read Naturally, Inc.
www.readnaturally.com
On May 8, 2013, at 10:24 AM, Dan Friedman <dan at clearvisiontech.com> wrote:
> Greetings!
>
> I have noticed that "the mouse is down" always returns false on Android. So, I am looking for a workaround. Here's my scenario:
>
> Lets say the user wins a 100 points. As each point is given, a bell goes off and the win count is increased for the user to see. On iOS, I simply check if "the mouse is down", and it if is, I exit the loop and award all the points. This gives the user a way to jump to the end - like a slot machine.
>
> I tried this:
>
> on touchStart touchID
> global touchCount
> add 1 to touchCount
> end touchStart
>
> on doWinner winAmount
> global touchCount
>
> put 0 into touchCount
>
> repeat winAmount
> if touchCount > 0 then
>
> --do final totals stuff
>
> exit repeat
> end if
>
> addOneCredit
> wait 2 ticks
> end repeat
>
> end doWinner
>
> But, touchCount never increases during the repeat. As you can see, I even stuck in a wait command hoping it might help. Nadda. Any thoughts or ideas?
>
> Thank you in advance!
>
> -Dan
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list