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

#1 2013-01-28 20:22:37

LilyBubblez
Scratcher
Registered: 2013-01-03
Posts: 1

mouse trouble?

I am making a game where you have to drag things to different places. How do you make it so that when you press on the mouse, it stops following it?

Offline

 

#2 2013-01-30 18:46:53

rpglurker
New Scratcher
Registered: 2013-01-17
Posts: 24

Re: mouse trouble?

there is an event that detects when the sprite is clicked. you can use that...

when (sprite1) clicked

Offline

 

#3 2013-01-30 18:48:11

lalala3
Scratcher
Registered: 2008-10-03
Posts: 100+

Re: mouse trouble?

LilyBubblez wrote:

I am making a game where you have to drag things to different places. How do you make it so that when you press on the mouse, it stops following it?

What's your method of making the objects draggable?


http://img515.imageshack.us/img515/9374/signature2nt.png

Offline

 

#4 2013-01-30 18:51:39

rpglurker
New Scratcher
Registered: 2013-01-17
Posts: 24

Re: mouse trouble?

you can have them follow the mouse....

"go to mouse-pointer" in a loop until you do another event...whatever you like

Offline

 

#5 2013-01-30 18:53:06

ErnieParke
Scratcher
Registered: 2010-12-03
Posts: 1000+

Re: mouse trouble?

Well here's a nice script that you could maybe use:

when [Iten v] clicked
repeat until <not (mouse down?)>
 go to [mouse pointer v]
end
repeat until (mouse down?)
 go to [mouse pointer v]
end

I hope that this helps! Also, hello LilyBubblez and welcome to Scratch! I hope that you'll have a wonderful time here!

Last edited by ErnieParke (2013-01-30 18:53:12)


http://i46.tinypic.com/35ismmc.png

Offline

 

Board footer