Animation in LiveCode

Mike Bonner bonnmike at gmail.com
Tue Jan 5 15:59:56 EST 2016


use "lock moves" before your moves, and add "without waiting" at the end of
each move command.
Unlock moves after you have all moves queued.

Also, rather than mess with setting the move speed a second time, just set
the loc of the images to where you want. Or even better, since they walk
off screen entirely, there is no reason to set them to invis, and since you
use "move" to tell them where to move from and to, you don't even need to
set the loc of them.

This is sufficient to the task.
on mouseup
   set the moveSpeed to 50
   lock moves
   move img "Tiger" from -59, 240 to 698, 240 without waiting
   move img "TigerBack" from 698, 160 to -59, 160 without waiting
   unlock moves
end mouseup

On Tue, Jan 5, 2016 at 1:23 PM, Richmond <richmondmathewson at gmail.com>
wrote:

> Thanks to the good offices of Brahmanathaswami and GIMP
> I have removed the annoying surrounding round one
> of the frames in the Tiger animated GIF.
>
> I have uploaded a new version of the proof-of-concept stack:
>
> http://forums.livecode.com/viewtopic.php?f=10&t=26110&p=136351#p136351
>
> featuring 2 animated tigers.
>
> My "problem" is how to get them to animate at the same time.
>
>
> 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