Disregard that - as soon as I hit send, my mail client fetched the other responses :)

On Fri, 17 Jul 2015 12:46:45 +0100, David Williams <dwilli...@livecode.com> wrote:

Hi Richmond,

The way to do this is to wait with messages - so 'wait 4 ticks' becomes 'wait 4 ticks with messages'. This form of the command allows other messages to be passed while it's executing, making it a non-blocking wait.

Regards,

-David

On Fri, 17 Jul 2015 11:52:06 +0100, Richmond <richmondmathew...@gmail.com> wrote:

I am animating a series of images like this:

on animaSHun
    set the vis of img "M1" to true
    set the vis of img "M4" to false
    wait 4 ticks
     set the vis of img "M2" to true
    set the vis of img "M1" to false
    wait 4 ticks
     set the vis of img "M3" to true
    set the vis of img "M2" to false
    wait 4 ticks
    set the vis of img "M4" to true
    set the vis of img "M3" to false
    wait 4 ticks
    animaSHun
end animaSHun

and there I was feeling proud of myself for having been "so" clever, BUT I was wrong . . .

Now in the same cardScript I have an "on arrowKey" script to let me move the animation
around the card with the arrow keys on my keyboard . . .

But that "animaSHun" routine goes round and round (as, indeed, it should) and the arrowKeys are quite unable to "get a word in edgeways"; in fact the only way to stop the thing
is by crashing LiveCode.

I would be grateful if anyone could tell me how to get a word in edgeways while keeping the animation going.

Yup: I know I could just use an animated GIF image . . . but, call me bloody-minded, I have my
reasons for not using one.

Richmond.

_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode




--
Using Opera's mail client: http://www.opera.com/mail/

_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to