Hi,
I'm just about to start my own kids off on some OLPC Etoys investigation, so I had a quick play, intending to make some turtle style polygons. It didn't work as I expected. A simple script like this: Repeat 2 times Star forward by 100 Star turn by 90 did not leave an L shape trail as I expected, but a diagonal line from the start to the finish position. Is this how pen trails are supposed to work? How do I draw a classic polygon, where the start and finish positions are the same? Currently no pen trail is left at all. cheers, Simon _______________________________________________ Squeakland mailing list [hidden email] http://squeakland.org/mailman/listinfo/squeakland |
Hi, Simon,
Set the "batch pen trails" option to false to get the behavior you're expecting. This option can be found in the "pen trails" menu of any playfield, and also in the "world's" pen-trails menu. Note that batch-pen-trails is turned off by default starting with etoys2.2 update level 1695. Cheers, -- Scott On Oct 20, 2007, at 11:10 AM, Simon Guest wrote: > Hi, > > I'm just about to start my own kids off on some OLPC Etoys > investigation, so I had a quick play, intending to make some turtle > style polygons. It didn't work as I expected. > > A simple script like this: > > Repeat 2 times > Star forward by 100 > Star turn by 90 > > did not leave an L shape trail as I expected, but a diagonal line from > the start to the finish position. > > Is this how pen trails are supposed to work? How do I draw a classic > polygon, where the start and finish positions are the same? > Currently no pen trail is left at all. > > cheers, > Simon > > _______________________________________________ > Squeakland mailing list > [hidden email] > http://squeakland.org/mailman/listinfo/squeakland _______________________________________________ Squeakland mailing list [hidden email] http://squeakland.org/mailman/listinfo/squeakland |
At Sat, 20 Oct 2007 21:55:54 -0700,
Scott Wallace wrote: > > Hi, Simon, > > Set the "batch pen trails" option to false to get the behavior you're > expecting. This option can be found in the "pen trails" menu of any > playfield, and also in the "world's" pen-trails menu. > > Note that batch-pen-trails is turned off by default starting with > etoys2.2 update level 1695. Scott, Thanks for that - now it does just what I wanted. (I was unintentionally running an older version that I got from tinlizzie site a little while ago. Have since moved to the latest update level 1715.) cheers, Simon _______________________________________________ Squeakland mailing list [hidden email] http://squeakland.org/mailman/listinfo/squeakland |
In reply to this post by Simon Guest-2
Simon Guest <[hidden email]> wrote:
A simple script like this: Repeat 2 times Star forward by 100 Star turn by 90 --------------------------------- I can't see how to program Repeat 2 times in etoys ie. to repeat something a certain number of times programmatically? I tried in the text editor too but didn't work: script3 4 timesRepeat: [self forward: 5 * 10. self turn: 90. self forward: 50] -- Bill Kerr http://billkerr2.blogspot.com/ On Oct 21, 2007 5:10 AM, Simon Guest <
[hidden email]> wrote: Hi, _______________________________________________ Squeakland mailing list [hidden email] http://squeakland.org/mailman/listinfo/squeakland |
He is using the OLPC etoy image.
Karl Bill Kerr wrote: > Simon Guest <[hidden email] > <mailto:[hidden email]>> wrote: > A simple script like this: > > Repeat 2 times > Star forward by 100 > Star turn by 90 > --------------------------------- > > I can't see how to program > Repeat 2 times > in etoys > ie. to repeat something a certain number of times programmatically? > > I tried in the text editor too but didn't work: > script3 > 4 timesRepeat: > [self forward: 5 * 10. > self turn: 90. > self forward: 50] > > > -- > Bill Kerr > http://billkerr2.blogspot.com/ > > On Oct 21, 2007 5:10 AM, Simon Guest < [hidden email] > <mailto:[hidden email]>> wrote: > > Hi, > > I'm just about to start my own kids off on some OLPC Etoys > investigation, so I had a quick play, intending to make some turtle > style polygons. It didn't work as I expected. > > A simple script like this: > > Repeat 2 times > Star forward by 100 > Star turn by 90 > > did not leave an L shape trail as I expected, but a diagonal line from > the start to the finish position. > > Is this how pen trails are supposed to work? How do I draw a classic > polygon, where the start and finish positions are the same? > Currently no pen trail is left at all. > > cheers, > Simon > > _______________________________________________ > Squeakland mailing list > [hidden email] <mailto:[hidden email]> > http://squeakland.org/mailman/listinfo/squeakland > > > ------------------------------------------------------------------------ > > _______________________________________________ > Squeakland mailing list > [hidden email] > http://squeakland.org/mailman/listinfo/squeakland > _______________________________________________ Squeakland mailing list [hidden email] http://squeakland.org/mailman/listinfo/squeakland |
Hi,
With the olpc image, you'll find a 'repeat times' tile un the miscellaneous category. With squeakland, you have to build your own repeat structure. Create a variable times. Write a script repetition with a test on te tmes value If the value is zero the stop script repetition if not then decrement the times value by 1 and do what should be repeted. In the main script set the value of time at the number of repetition and start script repetition stop script and start script are in the scripting category. There is a problem if you have other tiles after starting repetition, these tiles will be executed immediately and will not wait until repetition is finished. To correct this, you can put these commands in the yes branch of the test. Regards. -------- Message d'origine-------- De: [hidden email] de la part de Karl Date: jeu. 01/11/2007 10:06 À: Bill Kerr Cc: squeakland org mailing list Objet : Re: [Squeakland] OLPC pen trails for turtle graphics He is using the OLPC etoy image. Karl Bill Kerr wrote: > Simon Guest <[hidden email] > <mailto:[hidden email]>> wrote: > A simple script like this: > > Repeat 2 times > Star forward by 100 > Star turn by 90 > --------------------------------- > > I can't see how to program > Repeat 2 times > in etoys > ie. to repeat something a certain number of times programmatically? > > I tried in the text editor too but didn't work: > script3 > 4 timesRepeat: > [self forward: 5 * 10. > self turn: 90. > self forward: 50] > > > -- > Bill Kerr > http://billkerr2.blogspot.com/ > > On Oct 21, 2007 5:10 AM, Simon Guest < [hidden email] > <mailto:[hidden email]>> wrote: > > Hi, > > I'm just about to start my own kids off on some OLPC Etoys > investigation, so I had a quick play, intending to make some turtle > style polygons. It didn't work as I expected. > > A simple script like this: > > Repeat 2 times > Star forward by 100 > Star turn by 90 > > did not leave an L shape trail as I expected, but a diagonal line from > the start to the finish position. > > Is this how pen trails are supposed to work? How do I draw a classic > polygon, where the start and finish positions are the same? > Currently no pen trail is left at all. > > cheers, > Simon > > _______________________________________________ > Squeakland mailing list > [hidden email] <mailto:[hidden email]> > http://squeakland.org/mailman/listinfo/squeakland > > > ------------------------------------------------------------------------ > > _______________________________________________ > Squeakland mailing list > [hidden email] > http://squeakland.org/mailman/listinfo/squeakland > _______________________________________________ Squeakland mailing list [hidden email] http://squeakland.org/mailman/listinfo/squeakland _______________________________________________ Squeakland mailing list [hidden email] http://squeakland.org/mailman/listinfo/squeakland |
Free forum by Nabble | Edit this page |