[squeakland] point towards the mouse?

Bill Kerr billkerr at gmail.com
Sun Nov 15 05:42:37 EST 2009


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)


>
> - Bert -
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakland.org/pipermail/squeakland/attachments/20091115/3f320eb1/attachment.html


More information about the squeakland mailing list