Timing
Mark Smith
mark at maseurope.net
Mon Jan 2 21:49:51 EST 2006
put the ticks into tTicks
repeat while the ticks - tTicks < 240
....
Easier though, is to use a send in time, like:
send "showImage" to me in 4 seconds
and then have a handler:
on showImage
show image "TheTitle"
end showImage
Mark
On 3 Jan 2006, at 02:31, Scott Kane wrote:
> Hi,
>
> I've been trying to get a simple timing script
> going and so far haven't managed. Basically
> I need a routine that shows an image after a
> certain number of seconds. I've tried Ticks
> and seconds but neither seemed to do it.
>
> What I need is something like
>
> put the ticks into elapsedTicks
> repeat while elapsedTicks < 240 -- 240 being four seconds
> set the visible of image "TheTitle" to false
> end repeat
> set the visible of image "TheTitle" to true
>
> In my tests it drops through the while loop immediately
> and sets the image to visible, rather than waiting the
> desired four seconds.
>
> Scott
>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
More information about the use-livecode
mailing list