 |
|
| View previous topic :: View next topic |
| Author |
Message |
Bill Kerr Guest
|
Posted: Sun Nov 15, 2009 6:43 am Post subject: point towards the mouse? |
|
|
On Thu, Nov 12, 2009 at 2:54 AM, Bert Freudenberg <bert@freudenbergs.de (bert@freudenbergs.de)> wrote:
| Quote: | 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)
|
|
| Back to top |
|
 |
Bill Kerr Guest
|
Posted: Sun Nov 15, 2009 6:43 am Post subject: point towards the mouse? |
|
|
On Thu, Nov 12, 2009 at 2:54 AM, Bert Freudenberg <bert@freudenbergs.de (bert@freudenbergs.de)> wrote:
| Quote: | 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)
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|