Delay can be accomplished with "follow path." 1) Put an ellipse morph at 100@100 2) Give it a path from present location straight up to top of screen. 3) Create script named "delay" for ellipse Ellipse do menu item follow existing path Ellipse x <- 100 Ellipse y <- 100 4) Put a rectangle morph at bottom center of screen 5) Create script for rectangle Ellipse delay Rectangle forward by 5
Click on ! to execute rectangle script. Ellipse follows path and returns to 100@100, delaying move of rectangle. Michael --- On Sat, 4/9/11, Bert Freudenberg <b...@freudenbergs.de> wrote: From: Bert Freudenberg <b...@freudenbergs.de> Subject: Re: [Newbies] Re: Randomness + Pause/Delay? To: "A friendly place to get answers to even the most basic questions about Squeak." <beginners@lists.squeakfoundation.org> Date: Saturday, April 9, 2011, 6:33 AM Well, often in Etoys you need a slight shift in perspective to make the solution fit a lot better. Approaches from other systems do not always map well. E.g., a typical approach to implement PacMan would be to have PacMan object with a script to eat peas. In Etoys it's a lot easier for each pea to have a script checking if it was eaten. So if you could let us know, in high-level terms, what the intended behavior is, we might be able to come up with ideas how to do that in Etoys. - Bert - On 08.04.2011, at 21:40, michael rice wrote: Thanks. One forgets it's not a real-time simulation. Michael --- On Fri, 4/8/11, David Corking <li...@dcorking.com> wrote: From: David Corking <li...@dcorking.com> Subject: Re: [Newbies] Re: Randomness + Pause/Delay? To: "A friendly place to get answers to even the most basic questions about Squeak." <beginners@lists.squeakfoundation.org> Date: Friday, April 8, 2011, 2:01 PM On Thu, Apr 7, 2011 michael rice wrote: > > But the two scripts, blueAction and redAction, in sequence, appear to happen > simultaneously. > Is there a delay mechanism, like a marktime tile, that could separate two > scripts by a specified > number of ticks? If not, are there any plans for one? I saw these two posts last year. They might help: http://lists.squeakland.org/pipermail/etoys-dev/2010-October/005888.html http://lists.squeakland.org/pipermail/etoys-dev/2010-October/005887.html -----Inline Attachment Follows----- _______________________________________________ Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners
_______________________________________________ Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners