[Squeakland] Wait command

K. K. Subramaniam subbukk at gmail.com
Thu Apr 30 19:37:52 PDT 2009


On Friday 01 May 2009 7:33:03 am Roman Zilber wrote:
> Hi all,
>
> I am trying to find a way to control speed of motion and can't find it.
> Here an example:
>
> Script:
> repeat 4 times:
> do:
> Rocket.turn by (90)
> Rocket.forward by (100)
>
> All the lines of code executed immediately, I want to have a pause between
> motions.
You can assemble a timer in Etoys yourself. E.g. Paint a second hand and a 
script that will trigger the next steps when it reaches a specified angle. 
Hide the painted hand, if necessary :
     line turn: 1
     if line heading > 15 then
        line heading = 0
	run next step

HTH .. Subbu



More information about the Squeakland mailing list