[Etoys] Kedama: How can one turtle create another one?

Yoshiki Ohshima yoshiki at vpri.org
Thu Feb 12 14:50:18 EST 2009


  You add a variable to turtle (by the "V" button), make the type of
the variable to Player from the variable's menu.  And make a script
that assigns a value to the variable, and drop "get replicated" onto
the right hand side of assignment.  For example a script like:

  turtle1 script1
  turtle1's var1 <- turtle1's get replicated
  turtle1's heading <- random 360
  turtle1 forward by 5

and execute the script a few times (don't tick the script until you know what
you're doing^^), you see the turtles multiply.

-- Yoshiki

At Wed, 11 Feb 2009 16:31:36 +0100,
Matthias Berth wrote:
> 
> Hi,
> 
> 
> I have one breed of turtle, say a goose. I want a goose that lays an
> egg. In other words, how to create a new turtle of a different breed?
> I tried to use the tile "goose's turtle of"  but it did not work (I
> was not able to place it on a separate line in my script).
> 
> Thanks in advance
> 
> Matthias
> 
> PS. Pointers to information about the current version of Kedama are
> very welcome, too.
> _______________________________________________
> Etoys mailing list
> Etoys at lists.laptop.org
> http://lists.laptop.org/listinfo/etoys


More information about the Etoys mailing list