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

#1 2012-11-04 15:45:52

tbfg32
Scratcher
Registered: 2012-02-13
Posts: 35

Need help with a drawing script!

As the title says, I need help with a drawing script. I have it so the sprite, apptly dubbed "Pen", will follow the mouse, but there is something that I can't get to work but probably should be, because I could do it before: I can't get it so that when the mouse is DOWN, the sprite "Pen" will put the pen down, and when the mouse is UP, the pen goes up. And that means the pen as in the thing that DRAWS, not the other thing, the sprite. And I can't find the project I made it work in... >.< Can anyone help me? Please reply if you know! (Even though it will probably take a while, because NO ONE EVER ANSWERS. >.< )

Offline

 

#2 2012-11-04 16:58:10

TorbyFork234
Scratcher
Registered: 2012-03-01
Posts: 1000+

Re: Need help with a drawing script!

To have the pen go down when your pressing, just use this script:

when gf clicked
forever
if <mouse down?>
pen down
else 
pen up
end

Last edited by TorbyFork234 (2012-11-04 16:58:22)

Offline

 

#3 2012-11-04 17:16:07

tbfg32
Scratcher
Registered: 2012-02-13
Posts: 35

Re: Need help with a drawing script!

TorbyFork234 wrote:

To have the pen go down when your pressing, just use this script:

when gf clicked
forever
if <mouse down?>
pen down
else 
pen up
end

I thought I tried that... Huh, I'll go try again. Thanks!  smile

Offline

 

#4 2012-11-04 17:18:16

tbfg32
Scratcher
Registered: 2012-02-13
Posts: 35

Re: Need help with a drawing script!

TorbyFork234 wrote:

To have the pen go down when your pressing, just use this script:

when gf clicked
forever
if <mouse down?>
pen down
else 
pen up
end

I tried it, and it worked!  smile  Thanks a lot!  smile

Offline

 

Board footer