[squeakland] point towards the mouse?

Bert Freudenberg bert at freudenbergs.de
Sun Nov 15 07:55:48 EST 2009


On 15.11.2009, at 11:42, Bill Kerr wrote:

> On Thu, Nov 12, 2009 at 2:54 AM, Bert Freudenberg <bert at freudenbergs.de> wrote:
> Ah, I found your blog entry now. Attached is a project that I think does what you wanted - I did not hide the dots, would be simple though.
> 
> This task is a bit geared towards Scratch - it's more complicated in Etoys as there is no reification of the mouse pointer. Might be a nice idea to make a player for it though ...
> 
> 
> Nice project Bert, thanks
> 
> In reconstructing what you did I found out
> 1) that if I put the mouseDown script (click script) that moves the target object to the mouse object into the target script then it didn't work, it required a world script - not sure whether that is a bug or a feature (that you need a world script to detect a click on the world)
> 
> 2) this line was tricky to build:
> arrow's distance to target > 20
> (a) ie. I found arrow's distance to dot in the observation pane and replaced the dot with a target - but then there were no option for a > extension
> At that stage I would have given up but since you had done it then it had to be possible
> (b) So I then found an arrow's distance with an assignment handle in the geometry pane and then found I could replace the arrow's distance part with the arrow's distance to target built in (a)

When I drop a distance-to tile into the test tile, it appends the "<" comparison automatically.

Oh, I remember now. This was a bug, is fixed in Etoys 4.0.2329:

	http://tracker.squeakland.org/browse/SQ-495

- Bert -

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakland.org/pipermail/squeakland/attachments/20091115/71e545ec/attachment-0001.html


More information about the squeakland mailing list