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

#1 2010-03-06 14:32:30

mininut4
Scratcher
Registered: 2010-02-25
Posts: 55

drag without lock

i made this to help someone

<when[ ef puck ]clicked>
<repeat until><<  <not> <mouse down?> >>
<< <if><mouse down?> <and><( mode <=> freeplay )>  >>
<go to[ mouse pointer

be sure to lock the lock again.


http://scratch.mit.edu/projects/mininut4/942289

Offline

 

#2 2010-03-06 14:39:29

Kileymeister
Scratcher
Registered: 2008-04-17
Posts: 1000+

Re: drag without lock

If you want more accurate draggability (being dragged from the point your mouse touched it), use this script I made:

http://i50.tinypic.com/t03vc7.gif

You don't have to understand it, just copy it  wink

EDIT:  Be sure to take out the [set X to 0] and [set Y to 0] if you don't want it to start in the center.

Last edited by Kileymeister (2010-03-06 14:40:43)


I'm back, and showcasing two new* projects!  Click left or right on the image below to see!
http://img109.imageshack.us/img109/7905/part1l.pnghttp://img859.imageshack.us/img859/6417/part2bf.png

Offline

 

#3 2010-03-06 15:13:59

fg123
Scratcher
Registered: 2008-11-13
Posts: 1000+

Re: drag without lock

Kileymeister wrote:

If you want more accurate draggability (being dragged from the point your mouse touched it), use this script I made:

http://i50.tinypic.com/t03vc7.gif

You don't have to understand it, just copy it  wink

EDIT:  Be sure to take out the [set X to 0] and [set Y to 0] if you don't want it to start in the center.

I am using that in Xen8/


Hai.

Offline

 

#4 2010-03-06 15:52:37

spideygallo
Scratcher
Registered: 2009-12-17
Posts: 4

Re: drag without lock

Cool!  big_smile

Offline

 

#5 2010-03-06 16:03:16

technoguyx
Scratcher
Registered: 2008-10-18
Posts: 1000+

Re: drag without lock

Kiley and mininut, no scripts are necessary to drag sprites... Just click the lock symbol near the sprite's name.


http://getgnulinux.org/links/en/linuxliberated_4_78x116.png

Offline

 

#6 2010-03-06 16:25:36

Kileymeister
Scratcher
Registered: 2008-04-17
Posts: 1000+

Re: drag without lock

technoguyx wrote:

Kiley and mininut, no scripts are necessary to drag sprites... Just click the lock symbol near the sprite's name.

The entire purpose of this thread is to make a sprite draggable WITHOUT that.  That always makes the sprite go to front.

fg123 wrote:

I am using that in Xen8/

You mean you're using that technique, or you saw my script and thought you would use it?

Last edited by Kileymeister (2010-03-06 16:26:51)


I'm back, and showcasing two new* projects!  Click left or right on the image below to see!
http://img109.imageshack.us/img109/7905/part1l.pnghttp://img859.imageshack.us/img859/6417/part2bf.png

Offline

 

Board footer