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

#1 2013-04-19 17:38:43

Victoria393
Scratcher
Registered: 2011-12-30
Posts: 100+

Holding down the mouse

Okkayy...this is going to sound really stupid but I'm trying to make a game and you know how in some games you have to click something and drag it? Well, I only know how to do that using the "go to mouse-pointer" block, and it looks really messy. Does anyone know how I could put in a block to actually let the person playing the game move the sprite by holding down their mouse? Thanks-sorry if this was confusing!


CHEESE and pickles

Offline

 

#2 2013-04-19 17:45:18

Maltese_Falcon
Scratcher
Registered: 2013-03-25
Posts: 100+

Re: Holding down the mouse

Well, I think that something like this might work:

When [Draggable Sprite v] clicked
Forever
Repeat until <not <mouse down>
Go to [Mouse-pointer v]

Offline

 

#3 2013-04-19 17:48:50

Maltese_Falcon
Scratcher
Registered: 2013-03-25
Posts: 100+

Re: Holding down the mouse

Maltese_Falcon wrote:

Well, I think that something like this might work:

When [Draggable Sprite v] clicked
Forever
Repeat until <not <mouse down>>
Go to [Mouse-pointer v]

Fixed, I think. Time to wait 3 minutes...

Offline

 

#4 2013-04-19 17:53:31

Victoria393
Scratcher
Registered: 2011-12-30
Posts: 100+

Re: Holding down the mouse

yay! thanks-it works now! you helped me a lot


CHEESE and pickles

Offline

 

#5 2013-04-19 22:21:51

jh1234l
Scratcher
Registered: 2012-10-23
Posts: 19

Re: Holding down the mouse

Victoria393 wrote:

yay! thanks-it works now! you helped me a lot

Or you can click the Lock icon you see on the top when you click on a sprite.

Offline

 

Board footer