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

#1 2009-11-28 14:17:33

theapproom
Scratcher
Registered: 2009-08-24
Posts: 38

I need help on moving sprites with a mouse point?

I need help moving a sprite with clicking on a sprite then being able to move it around..... How do I do this?

Offline

 

#2 2009-11-28 14:55:27

shadow_7283
Scratcher
Registered: 2007-11-07
Posts: 1000+

Re: I need help on moving sprites with a mouse point?

Try these scripts. I prefer option A, but B  and C work too.

A:
<when green flag clicked>
<forever>
<if><< <mouse down?> <and> <touching[ mousepointer >>
<go to[ mousepointer

B:
<when[ some sprite ]clicked>
<go to[ mouse pointer

C:
When you click on a sprite, directly to the right of it's name is a lock icon. Click it so that it is unlocked. Then, even in presentation mode, you can drag a sprite.

OPTIONAL:
To make sure that the sprite stays glued to the mousepointer, around each "go to[ mousepointer" you can put this block:

<repeat until><<  <not> <mouse down?> >>

Please tell me which one you end up using!

Offline

 

Board footer