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

#1 2007-05-17 13:34:58

dominicmelton
Scratcher
Registered: 2007-05-16
Posts: 1

using mouse to move sprite during game play

Part of the game it to move a sprite to a certain place, how do I make the sprite move with the mouse when clicked on, and then stop somewhere when the mouse in unclicked etc. So it can be moved again and again. Like you can move sprites when makeing the game, but during gameplay, or when its on the website.


Thanks.
Dom

Offline

 

#2 2007-05-17 14:03:55

Duncan
Scratcher
Registered: 2007-05-15
Posts: 47

Re: using mouse to move sprite during game play

something like...

If MouseDown
Go To MousePointer


Have a look at the SimplePaint demo in the Simulations folder.

Is that the kind of thing you want?

Offline

 

#3 2008-02-20 13:19:22

horselover
Scratcher
Registered: 2008-01-26
Posts: 96

Re: using mouse to move sprite during game play

I think this is it.
<go to[ then you select mouse pointer
<when[ stage<stop all> ]clicked>


Scratch is so cool!

Offline

 

#4 2008-02-20 13:20:24

horselover
Scratcher
Registered: 2008-01-26
Posts: 96

Re: using mouse to move sprite during game play

oops sorry i did that wrong


Scratch is so cool!

Offline

 

Board footer