Animation in LiveCode
bonnmike at gmail.com
Tue Jan 5 16:01:34 EST 2016
Alternatively, if you want more control of the animation, you could use a
game loop, and move the tigers around (set the loc... ) as well as manually
choosing which frame to show when using "currentFrame"
On Tue, Jan 5, 2016 at 1:59 PM, Mike Bonner <bonnmike at gmail.com> wrote:
> 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>
>> 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:
>> featuring 2 animated tigers.
>> My "problem" is how to get them to animate at the same time.
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
More information about the Use-livecode