[Newbies] Quick noob snippets
Herbert König
herbertkoenig at gmx.net
Tue May 20 05:01:51 UTC 2008
Hello Sven,
don't know about your first Question though people now may think it
has been replied to.
SS> 100 timesRepeat: [randomNo := 100 atRandom. anEllipse height:
SS> randomNo. anEllipse borderWidth: anEllipse borderWidth + 1 ]
SS>
SS> It did work but it did the moves all at once. At first I
World doOneCycleNow
will update the UI and
(Delay forMilliseconds: 20) wait
will give you some time to watch every step.
So your loop might look like
100 timesRepeat: [randomNo := 100 atRandom.
anEllipse height: randomNo.
anEllipse borderWidth: anEllipse borderWidth + 1.
World doOneCycleNow.
(Delay forMilliseconds: 20) wait]
Cheers,
Herbert
More information about the Beginners
mailing list