Question about how to run an animation only once

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Question about how to run an animation only once

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?

Thanks,

Randy
_______________________________________________
Squeakland mailing list
[hidden email]
http://squeakland.org/mailman/listinfo/squeakland
Reply | Threaded
Open this post in threaded view
|

Re: Question about how to run an animation only once

Bert Freudenberg-3
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 -

_______________________________________________
Squeakland mailing list
[hidden email]
http://squeakland.org/mailman/listinfo/squeakland
Reply | Threaded
Open this post in threaded view
|

Re: Question about how to run an animation only once

Alan Kay
In reply to this post by Randy Goldenberg
Hi --

The basic idea is that animation in Etoys is something for the children to learn how to program it (it's one of many uses of the powerful idea "increase by"). So it's not a "feature" or "productivity tool". If you look in the "collections" role of a holder, you will find a property "Holder's count" which keeps track of the number of elements that are in the particular holder. You can test this against the "Holder's cursor" position to see if you have gone through all the contents of the holder. The control of scripts is found under the role "scripting".

Cheers,

Alan

animateOnce.jpeg

At 05:00 PM 6/24/2006, Randy Goldenberg wrote:
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?

Thanks,

Randy
_______________________________________________
Squeakland mailing list
[hidden email]
http://squeakland.org/mailman/listinfo/squeakland

_______________________________________________
Squeakland mailing list
[hidden email]
http://squeakland.org/mailman/listinfo/squeakland