Questions on E-Toy Scripting of Alice (3-D)
Scott Wallace
scott.wallace
Fri Apr 18 14:53:40 PDT 2003
Hi, Mark,
Drop some numeric-valued tile (such as, say, "WhiteRabbit's heading")
into the TEST pane. Because a TEST pane requires a boolean-valued
expression, this will magically get expanded into a related
boolean-valued expression -- in this case "WhiteRabbit's heading <
5". Now it should be straightforward to edit that into the
expression you really want.
-- Scott
At 3:14 PM -0400 9/7/01, Mark Guzdial wrote:
>> > - I was trying to figure out how to make one object respond to
>>> another one being close. I wanted to make a sound occur when the
>>> WhiteRabbit got close to the banana in my world. I found that I
>>> could create a tile phrase WhiteRabbit distanceTo: banana, but this
>>> returned a number. I couldn't figure out how to set up a test with
>>> this, e.g., when the distance to the banana is less than 0.5 meter.
>>
>>You need to get a "Test" tile out of the scriptor. Then you can construct
>>your test as follows:
>> Test (WhiteRabbit distanceTo: banana) < 0.5
>> Yes "Do something"
>> No "Do something else"
>
>I got the Test tile, but I couldn't figure out how to get the "<".
>Where do I get one of those in the tiling world?
>
>Thanks, Michael!
>
>Mark
>
>--------------------------
>Mark Guzdial : Georgia Tech : College of Computing : Atlanta, GA 30332-0280
>Associate Professor - Learning Sciences & Technologies.
>Collaborative Software Lab - http://coweb.cc.gatech.edu/csl/
>(404) 894-5618 : Fax (404) 894-0673 : guzdial at cc.gatech.edu
>http://www.cc.gatech.edu/gvu/people/Faculty/Mark.Guzdial.html
More information about the Squeakland
mailing list