[Squeakland] Question about how to run an animation only once

Bert Freudenberg bert at impara.de
Sun Jun 25 01:06:51 PDT 2006


Am 25.06.2006 um 02:00 schrieb Randy Goldenberg:

> Hi,
>
> I've been trying to discover how to run an animation only once,
> without success.
>
> If you click on the animation script's yellow question mark, it moves
> to the next cursor position. If you click on the clock, the script
> loops endlessly. I've explored the script menu, but nothing I've found
> so far has enabled me to run the animation one cycle through all the
> frames, then stop. How does one do that?

Squeak does not know when your animation's cycle is done, because  
there is no animation built into etoys - you created it yourself. So  
you have to teach it to stop when appropriate yourself, too. For  
example, use a Test tile to pause the script when the cursor has  
reached the holder's last element.

- Bert -



More information about the Squeakland mailing list