[etoys-dev] How can I cause a script to be executed on an object when I click on it? (Beyond MouseDown)

Bert Freudenberg bert at freudenbergs.de
Tue Mar 29 10:57:20 EDT 2011


On 29.03.2011, at 15:44, Steve Thomas wrote:

> Thanks, this helps and gives me some other ideas.
> 
> I hesitate to mention this (as one should not "bite the hand that feeds") but if you open the viewer for any of the color Player's in the pallette, then get its viewer and pull out the "actOn" script, the scripting tile show "Player | turn by | 45" even though it does set the color properly. If you then "show code textually" and switch back to "tile version" it turns the player on mouse down.
> 
> When I addeded a new tile (with the actOn script being "forward by | 20") the scripts tiles changed to show "forward by | 20" although the behavior did not change until I switched from tile->text->tile. I opened a ticket in Tracker.
> 
> Stephen


Interesting. I may have made Turn a sibling instead of copying. When I then changed the actOn: script, all the other siblings should have changed too (so I would have noticed my error). But it seems it actually is no sibling. Mysterious ...

- Bert -

-------------- n?chster Teil --------------
Ein Dateianhang mit HTML-Daten wurde abgetrennt...
URL: <http://lists.squeakland.org/pipermail/etoys-dev/attachments/20110329/4bcbd537/attachment.html>


More information about the etoys-dev mailing list