Totally Loopy
Scott Rossi
scott at tactilemedia.com
Fri Jul 17 13:50:46 EDT 2015
In addition to the wait(/send?) options proposed, you might consider displaying your animation more efficiently. Showing an image and hiding another requires two steps and is inefficient. You can use a transparent button to display your "frames" by setting the icon property of the button to the ID of each of your images in succession, without having to hide any image. Plus it's much easier to move the animation around the card since you only need to move the button and don't need to concern yourself with the locations of the images.
Regards,
Scott Rossi
Creative Director
Tactile Media UX/UI Design
> On Jul 17, 2015, at 12:52 AM, Richmond <richmondmathewson at 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 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