Home
Project Folders
Teacher Resources
Student Resources
How Do I?
Literacy
MWForum
Site Map
Search
Our Team

MWForum Message [Date Index] [Threads] [Authors] [Attachments] [Subscribe]

[Thread Prev] [Thread Next]

To: mwforum@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Subject: Re: MIA, Ask an Expert: timer
From: "Daniel Ajoy" <da.ajoy@xxxxxxxxx>
Date: Fri, 30 Mar 2007 22:54:25 -0500
Dkim-signature: a=rsa-sha1; c=relaxed/relaxed;

> from: <karimsbadges@xxxxxxxxxxxxx>
> date: Fri Mar 30 15:06:32 2007
> platform: Mac OS10
> version: MicroWorlds Ex
> 
> How can a turtle create turtles every _ amount of seconds? 

you can use wait.

can you open the attached project?

the code is below:

to startup
 setturtlenames 0
 forever [
  wait 10
  newturtle word "t turtlenames
  setturtlenames turtlenames + 1
  rt random 360 fd random 200
  st
 ]
end

> And make the turtle disapear after a certain amount of time? 

you can set its "onclick once" rule to

wait 30 remove who


Daniel
OpenWorld Learning

The following section of this message contains a file attachment
prepared for transmission using the Internet MIME message format.
If you are using Pegasus Mail, or any other MIME-compliant system,
you should be able to save it or view it from within your mailer.
If you cannot, please ask your system administrator for assistance.

   ---- File information -----------
     File:  newturtle_wait.mwx
     Date:  30 Mar 2007, 22:51
     Size:  2337 bytes.
     Type:  Unknown

Attachment: newturtle_wait.mwx
Description: Binary data


  • Previous by thread: MIA, Ask an Expert: timer
  • Next by thread: MIA, Ask an Expert: timer

  • To save an attachment to your computer, PC users should right-click (Mac users, click and hold the mouse button) on the link and then choose 'save target as' from the pop-up menu. A window will then pop up in which you can choose a location for the file.


    © copyright 2001 - 2008