[etoys-dev] Book Sprint Questions: Part 2

Yoshiki Ohshima yoshiki at vpri.org
Tue Feb 9 02:09:01 EST 2010


At Tue, 9 Feb 2010 01:10:55 -0500,
Steve Thomas wrote:
> 
> Thanks, Korakurider, Karl and Yoshiki for the answers to my previous questions. Here is the next set:
> 
>  1. What is the purpose of the variable Type: ButtonPhase (ie: how and where can I use it)? 
>     A Type with the following possible values: button down, while pressed, button up

  When you open the viewer for a button, and go to the 'button'
category in the viewer, 'act when" property shows it.

>  2. In the documentation I wrote: " In Etoys the terms Player and Object basically mean the same thing." Is this accurate or
>     does Player have a special meaning?

  The subtle philosophical difference arises when you use "look like".
If sketch A become look like sketch B, is A the same or now different?
The old answer was that not matter what object a player wears, it is
the same object.  But I think now the idea is to say an object and a
player to be the same thing, and it can wear somebody else' look.

>  3. For Type "Point" you can enter a single number (ex: 100) which if you try and use it to set an object's location will
>     throw an exception:
>    
>         An error has occurred in
>    
>         script5 of Rectangle.
>    
>         Fix your script(s), hit 'Abandon' and try again.
>    
>     If you enter an "incomplete point" ex: @100 or 100@ you get a "Syntax Error" "Nothing more expected ->@00"

  Ah, this certainly a bug...

-- Yoshiki


More information about the etoys-dev mailing list