[Etoys] EllipseMorph and sibling instance

polishookm polishookm at mail.montclair.edu
Sat Apr 12 13:01:39 EDT 2008


Ok. Trying my hand with proper terminology ...

I have a player that's wearing an ellipseMorph. The player script is 
below. I"m thinking that through a halo on the ellipseMorph, I can click 
on the green duplicate icon to get a second ellipseMorph that responds 
to the same script. But the sibling player doesn't then respond to the 
script.

I'm fairly sure, on the other hand, that I have been able to apply the 
same idea successfully to sketchMorphs. So that's the larger context of 
my question.

Thanks in advance for all help ....

- Mark

move
    (self getScaleFactor eToysLT: 0.5)
        ifTrue: [self setScaleFactor: 10.0 random / 10]
        ifFalse: [self setScaleFactor: 0.25].
    self setDotSize: 6 random.
    self setPenColor: (Color r: 1.0 g: 1.0 b: 0.0).
    self setTrailStyle: #dots.
    self setPenDown: true.
    Polygon1 setPenDown: true.
    Polygon1 setTrailStyle: #dots.
    Polygon1 setDotSize: 3.
    self forward: 32 random.
    self turn: 32 random

Bert Freudenberg wrote:
> On 11.04.2008, at 18:16, polishookm wrote:
>   
>> Should all sibling instances of a morph (in etoys-dev.image) respond  
>> to
>> the same script? If this is so, I'm not sure that this is working
>> correctly with EllipseMorph.
>>     
>
>
> I'm not sure if this is a problem, but you get the terminology mixed  
> up, which may hinder understanding.
>
> In Etoys you do not actually script a "morph". The script belongs to a  
> "player", which "wears" a morph as its "custome". So you actually have  
> siblings of a player, not of a morph.
>
> Anyway, siblings should work independently of the costume. Please  
> report the steps so we can reproduce the problem.
>
> - Bert -
>
>
> _______________________________________________
> Etoys mailing list
> Etoys at lists.laptop.org
> http://lists.laptop.org/listinfo/etoys
>   

-- 
Mark Polishook, D.M.A.
Technology Coordinator
Morehead Hall, Rm 132
Center for Academic Advising and Adult Learning
Montclair State University
Montclair, NJ 07043

(973)-655-7114
http://www.montclair.edu/AcademicAdvising/html
polishookm at mail.montclair.edu



More information about the Etoys mailing list