Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Drag and drop?
- Mysteh
-
Scratcher
2 posts
Drag and drop?
Since the new version of Scratch came out, there has been know lock/unlock feature added. (That I know of. If there is, just tell me
I'm probably missing it.)
Does anyone have a script that would make something drag-able? Thanks in advanced.
I'm probably missing it.)Does anyone have a script that would make something drag-able? Thanks in advanced.
Last edited by Mysteh (May 26, 2013 11:59:09)
- mitchboy
-
Scratcher
1000+ posts
Drag and drop?
There is a function. Click on the sprite, then on the “i” icon that appears, and an option will appear.
- Failord_Remix
-
Scratcher
15 posts
Drag and drop?
You saw my project. Is it time for a close? I'll leave it up to you. 

- RUBIXS
-
New Scratcher
60 posts
Drag and drop?
I made a game that requires tonnes of drag and drop… basically what i did was when the sprite is clicked it just follows the mouse until the space key is pressed. its not really drag and drop but it follows the same idea.
you can go here http://scratch.mit.edu/projects/10424583/ to see what i'm talking about
you can go here http://scratch.mit.edu/projects/10424583/ to see what i'm talking about

- Mysteh
-
Scratcher
2 posts
Drag and drop?
I'm sorry, I feel dumb right now
You saw my project. Is it time for a close? I'll leave it up to you.I'm sorry, I haven't used the forums in a year… How do you close? again I'm sorry
There is a function. Click on the sprite, then on the “i” icon that appears, and an option will appear.Oh! Thank you!
- turkey3
-
Scratcher
1000+ posts
Drag and drop?
The drag gable sprite feature was in 1.4 also and can be accessed by clicking the “i” on the selected sprite. A workaround script is this:
when this sprite clicked
repeat until <not <mouse down>>
go to [mouse pointer]
- Failord_Remix
-
Scratcher
15 posts
Drag and drop?
The drag gable sprite feature was in 1.4 also and can be accessed by clicking the “i” on the selected sprite. A workaround script is this:when this sprite clicked
repeat until <not <mouse down>>
go to [mouse pointer]
I'm sorry, but that's a terrible workaround! You should see mine.
Last edited by Failord_Remix (July 5, 2013 19:57:30)
- Failord
-
Scratcher
1000+ posts
Drag and drop?
Close has been added for users! Look at the bottom of the page. 

- mobluse
-
Scratcher
100+ posts
Drag and drop?
Here is a drag and drop block: drag 'n drop:
You use it like this:
I use this in my Squash-project: http://scratch.mit.edu/projects/11071175/
My technique is a bit similar to this.
define drag 'n drop set [dx v] to ((mouse x) - (x position)) set [dy v] to ((mouse y) - (y position)) repeat until <not <mouse down?>> glide (0.05) secs to x:((mouse x) - (dx)) y:((mouse y) - (dy)) end
You use it like this:
when this sprite clicked drag 'n drop
I use this in my Squash-project: http://scratch.mit.edu/projects/11071175/
My technique is a bit similar to this.
Last edited by mobluse (July 15, 2013 20:09:00)
- GalleonCloak6764
-
Scratcher
100+ posts
Drag and drop?
Right click on the icon of the sprite in question at the bottom of the screen.
Among all of the other options, an ‘i’ or ‘info’ option will be available.
Click on that.
Then click on the draggable square.
You can also change the name of the sprite and all sorts of things
Among all of the other options, an ‘i’ or ‘info’ option will be available.
Click on that.
Then click on the draggable square.
You can also change the name of the sprite and all sorts of things
- deck26
-
Scratcher
1000+ posts
Drag and drop?
Right click on the icon of the sprite in question at the bottom of the screen.Please don't reopen topics that haven't been posted on for a long time. This one had been dormant since July 2013!
Among all of the other options, an ‘i’ or ‘info’ option will be available.
Click on that.
Then click on the draggable square.
You can also change the name of the sprite and all sorts of things
- Discussion Forums
- » Help with Scripts
-
» Drag and drop?