This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2010-03-05 02:24:27

Kteo
Scratcher
Registered: 2010-03-05
Posts: 2

help me

Hello
I need to know if ay way to control mouse
example we

1 you click on the object
2 will follow the object
3 Beam click another time on it
4 will no longer follows

What would be the command for it?

thanks

Offline

 

#2 2010-03-05 06:58:06

Dazachi
Retired Community Moderator
Registered: 2009-09-12
Posts: 1000+

Re: help me

http://i604.photobucket.com/albums/tt127/sudden7/ScriptHelp.gif
That should work unless I misunderstood what you wanted.


Dazachi, Retired Community Moderator
May also know me as OJACheung.

Offline

 

#3 2010-03-05 08:01:26

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: help me

I think they want to be able to click on the sprite and have it follow and then click again to have it stop following.  I used a variable to do it in this example

http://scratch.mit.edu/projects/Paddle2SeeFixIt/915717


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#4 2010-03-05 15:50:35

Dazachi
Retired Community Moderator
Registered: 2009-09-12
Posts: 1000+

Re: help me

Paddle2See wrote:

I think they want to be able to click on the sprite and have it follow and then click again to have it stop following.  I used a variable to do it in this example

http://scratch.mit.edu/projects/Paddle2SeeFixIt/915717

Wouldn't my script work for that?


Dazachi, Retired Community Moderator
May also know me as OJACheung.

Offline

 

#5 2010-03-05 18:13:18

soupoftomato
Scratcher
Registered: 2009-07-18
Posts: 1000+

Re: help me

<when green flag clicked>
<forever>
<if><<mouse down? <and>touching mouse pointer>>
<repeat until>mouse down
<go to[ mouse


I'm glad to think that the community will always be kind and helpful, the language will always be a fun and easy way to be introduced into programming, the motto will always be: Imagine, Program, Share - Nomolos

Offline

 

#6 2010-03-05 18:45:49

hmnwilson
Scratcher
Registered: 2007-07-04
Posts: 1000+

Re: help me

Dazachi wrote:

http://i604.photobucket.com/albums/tt12 … ptHelp.gif
That should work unless I misunderstood what you wanted.

You need you need to put the "and" block inside a "not" block, otherwise the script won't do anything.


I'm taking a break from Scratch until 2.0 comes out. Any messages sent between then and now probably won't be read - sorry.
(Oct. 20, 2011)

Offline

 

#7 2010-03-06 09:34:48

Stickman704
Scratcher
Registered: 2009-01-31
Posts: 1000+

Re: help me

Just click the little padlock near the renaming box at the top. It should work.

Unless, like Dazachi, I misunderstand what you mean.


Dun dun dun dun dun dun.... dun dun dun dun dun dun...  tongue

Offline

 

Board footer