[squeakland] More than one input for a script?

karl ramberg karlramberg at gmail.com
Wed Aug 31 12:47:32 EDT 2011


Yes, you are limited to one parameter per message send in Etoys.
You can set the length variable before the message send.
Not as functional but works very well.

Karl

On Wed, Aug 31, 2011 at 5:41 PM, R.D. Latimer <rdlatimer at gmail.com> wrote:

> I'd like to make a simple drawPolygon script that needs two inputs, one of
> length of each side and one for number of sides.
>
> The basic prototype is:
>
>  drawPolygon (length, sides):
>     repeat sides
>         forward length
>         turn sides/360
>
> With Etoys, It looks like the limit is one input parameter for a script, so
> that the script would be limited to:
>
>  drawPolygon (sides):
>    repeat sides
>       forward 100         <-- the user would need to hard code the length
> of the sides
>       turn sides/360
>
> Can I use more than on numerical input in a script?
>
> Thanks,
>  Randy Latimer
>
> _______________________________________________
> squeakland mailing list
> squeakland at squeakland.org
> http://lists.squeakland.org/mailman/listinfo/squeakland
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakland.org/pipermail/squeakland/attachments/20110831/7d7a4e5b/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: script.jpeg
Type: image/jpeg
Size: 49432 bytes
Desc: not available
URL: <http://lists.squeakland.org/pipermail/squeakland/attachments/20110831/7d7a4e5b/attachment-0001.jpeg>


More information about the squeakland mailing list