um... my question is:
if i have a sprite and i want to make so if i click on it and drag it it will leave a line behind (pen)?
[blocks]<pen down>[/blocks]
Offline
Hi
I can only think of doing it by making it follow your mouse when you press a button.
[blocks]
<when[ space ]key pressed>
<pen down>
<point in direction( mouse pointer )>
<move( 5 )steps>
Last edited by onedudeuk (2009-01-20 03:42:15)
Offline
madllamacheese wrote:
um... my question is:
if i have a sprite and i want to make so if i click on it and drag it it will leave a line behind (pen)?
[blocks]<pen down>[/blocks]
Just make sure the sprite is set so that it can be dragged (click on the little padlock symbol just to the right of the sprite name near the center top of the Scratch screen). Then, use the Green Flag and Pen Down block to put the pen down. Whenever the sprite is dragged it will leave a line behind - if you are running in Presentation Mode or Online. In Development mode, you won't see the line. Hope that helps.
In Development mode, all sprites are draggable so you can build the project. Things work a bit differently there. To really see how the project is going to work, you have to run it in Presentation Mode (full screen mode).
Offline