Ugh, that is right.<div>Stepping starts right away for a new morph.<br><div>Since you want stepping only at certain times you should use startSteppingSelector:  and stopSteppingSelector: (and not call that selector/method #step.)</div>
<div><br></div><div>Karl<br><br><div class="gmail_quote">On Thu, Jan 5, 2012 at 9:00 PM, Teske, Jan <span dir="ltr">&lt;<a href="mailto:Jan.Teske@student.hpi.uni-potsdam.de">Jan.Teske@student.hpi.uni-potsdam.de</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thank you, I will try it with stepping. Can you tell my what I have to do to prevent stepping as soon as the Morph is created? A &#39;morph stopStepping&#39; in the initialize method is not helping since there is no world for the morph at this time. What shall I do instead?<br>

<br>
Thanks!<br>
________________________________________<br>
From: <a href="mailto:beginners-bounces@lists.squeakfoundation.org">beginners-bounces@lists.squeakfoundation.org</a> [<a href="mailto:beginners-bounces@lists.squeakfoundation.org">beginners-bounces@lists.squeakfoundation.org</a>] On Behalf Of karl ramberg [<a href="mailto:karlramberg@gmail.com">karlramberg@gmail.com</a>]<br>

Sent: Thursday, January 05, 2012 6:00 PM<br>
To: A friendly place to get answers to even the most basic questions about      Squeak.<br>
Subject: Re: [Newbies] Is there an easy way to implement an animation loop?<br>
<div class="im"><br>
Hi<br>
In morphich you should use the step method.<br>
<br>
Just add a step method to the morph and start the stepping when you want the animation to start.<br>
I think you must add a self changed or a self layoutChanged at the end of the step method to update the morph.<br>
<br>
It&#39;s a little more difficult to block all other morphs from update thou.<br>
But if they run animation, you can stop their stepping and start it again when your animation is done.<br>
<br>
Morphic runs in a single process and using other processes will not necessarily give trouble.<br>
<br>
You set the desired time between steps with method stepTime and return the millisecond time you would like.<br>
<br>
Karl<br>
<br>
</div><div class="im">On Thu, Jan 5, 2012 at 2:15 PM, Jan Teske &lt;<a href="mailto:jan.teske@student.hpi.uni-potsdam.de">jan.teske@student.hpi.uni-potsdam.de</a>&lt;mailto:<a href="mailto:jan.teske@student.hpi.uni-potsdam.de">jan.teske@student.hpi.uni-potsdam.de</a>&gt;&gt; wrote:<br>

Hi there,<br>
<br>
I try to implement a blocking animation so that the process waits for the animation to be terminated before going ahead. This animation should lower the extent of a Morph in 20 iterations so that it looks like it would shrink.<br>

<br>
I tried to accomplish that in a &#39;1 to: 20 do:&#39; loop but the Morph is not updated during the iterations. I tried &#39;morph changed&#39; but that doesn&#39;t work either. It does work, however, if I fork the animation loop. But than I have an extra process an need Semaphores to wait for its execution. That&#39;s not as simple as it could be.<br>

<br>
Is there any better way than fork and Semaphore? Maybe some force redraw method I have overlooked?<br>
<br>
Thanks in advance!<br>
_______________________________________________<br>
Beginners mailing list<br>
</div><a href="mailto:Beginners@lists.squeakfoundation.org">Beginners@lists.squeakfoundation.org</a>&lt;mailto:<a href="mailto:Beginners@lists.squeakfoundation.org">Beginners@lists.squeakfoundation.org</a>&gt;<br>
<a href="http://lists.squeakfoundation.org/mailman/listinfo/beginners" target="_blank">http://lists.squeakfoundation.org/mailman/listinfo/beginners</a><br>
<div class="HOEnZb"><div class="h5"><br>
_______________________________________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@lists.squeakfoundation.org">Beginners@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/mailman/listinfo/beginners" target="_blank">http://lists.squeakfoundation.org/mailman/listinfo/beginners</a><br>
</div></div></blockquote></div><br></div></div>