I am new to Scratch and have some questions. I made a project on my computer where you could click on an object using the mouse and drag it to another spot. But when I uploaded it to the website, I was no longer able to click and drag objects.
How can I write a script to drag an object?
Offline
Try This:
[blocks]<when green flag clicked>
<forever>
<if><<<touching[ mouse-pointer <and><mouse down?>>>
<go to[ mouse-pointer
<end>
<if><not><<<touching[ mouse-pointer <and><mouse down?>>>>>
<wait until><not><mouse down?>>>
<end>
<end>[/blocks]
Offline
Hi thanks for the help its really helpfull! What could i have done without you two?!
Thanks ALOT!
Oliviamonika
Offline