Squeakland Website
 Forum SubscriptionsForum Subscriptions   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

point towards the mouse?
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Squeakland Forum Index -> Squeakland Community
View previous topic :: View next topic  
Author Message
Bill Kerr
Guest





PostPosted: Sun Nov 15, 2009 6:43 am    Post subject: point towards the mouse? Reply with quote

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)
 
Quote:

- Bert -
Back to top
Bill Kerr
Guest





PostPosted: Sun Nov 15, 2009 6:43 am    Post subject: point towards the mouse? Reply with quote

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)
 
Quote:

- Bert -
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Squeakland Forum Index -> Squeakland Community All times are GMT - 4 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
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