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

#1 2010-04-08 17:12:48

indy1998
Scratcher
Registered: 2010-02-17
Posts: 14

Re:Click and Command

How do you make it so you can select a sprite and tell them where to go?


Indy1998

Offline

 

#2 2010-04-08 17:33:19

scmb1
Scratch Team
Registered: 2009-03-19
Posts: 1000+

Re: Re:Click and Command

I'm not entirely sure what you are asking. Do you want to click a sprite and then type in its x and y position? If so, you can use this script:

http://img242.imageshack.us/img242/8559/askxandy.gif


http://i48.tinypic.com/2z5pqad.png

Offline

 

#3 2010-04-08 17:49:10

indy1998
Scratcher
Registered: 2010-02-17
Posts: 14

Re: Re:Click and Command

I mean you click a sprite then you click somewhere an he goes there.


Indy1998

Offline

 

#4 2010-04-08 18:18:47

scmb1
Scratch Team
Registered: 2009-03-19
Posts: 1000+

Re: Re:Click and Command

Ok. I have two versions depending on exactly what you want. In this one, when the cat is clicked, it will wait until the mouse is clicked again and then go to the mouse:

http://img511.imageshack.us/img511/8506/gotomouse.gif

If you want to drag smoothly instead, you can use this:

http://img219.imageshack.us/img219/4801/dragy.gif

There is also a way to make it draggable without a script. All you have to do is click on this lock to "unlock" it:

http://img245.imageshack.us/img245/1226/picture13d.png

Does that help? Any questions?

Last edited by scmb1 (2010-04-11 09:34:26)


http://i48.tinypic.com/2z5pqad.png

Offline

 

Board footer