Totally Loopy

Richmond richmondmathewson at gmail.com
Fri Jul 17 06:52:06 EDT 2015


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.




More information about the use-livecode mailing list