I'm making a project where you drag things, but I can't get it to work. I've looked at others who make projects like the one I 'm making, but I don't see anything in the scripts that makes it so you can drag them. Please Help!!!!!
Offline
SunnyPeacepaw wrote:
I'm making a project where you drag things, but I can't get it to work. I've looked at others who make projects like the one I 'm making, but I don't see anything in the scripts that makes it so you can drag them. Please Help!!!!!
Go into the sprite you want to drag. At the top of the scripts pane, there's a little pane that tells you some general information about your sprite, and lets you rename it. Next to the field that lets you rename your sprite, there's a little padlack. Click on the padlock to unlock it, and your sprite is now draggable!
Offline
Fixing KewlBeanz's script:
[blocks]
<when green flag clicked>
<forever>
<if> << <touching[ mouse-pointer <and> <mouse down?> >>
<go to[ mouse-pointer
<end>
<end>
[/blocks]
Offline
The above scripts will work fine, too - but if there's any lag the project won't work too well, especially if there's a small sprite or the mouse is moving quickly. I'd suggest using a script like this instead:
Of course, it's still easier to do what I suggested above.
Offline
mathematics wrote:
Fixing KewlBeanz's script:
[blocks]
<when green flag clicked>
<forever>
<if> << <touching[ mouse-pointer <and> <mouse down?> >>
<go to[ mouse-pointer
<end>
<end>
[/blocks]
lol im not to good with the visual blocks on forums
Offline