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

#1 2009-11-12 23:43:20

JaredxD
Scratcher
Registered: 2009-09-10
Posts: 100+

Need help making a Drawing project for my friend, please help =]

Hey guys, I am making a project for my friend Cody, and it involves drawing with a pencil. I know how to get the pencil to move where the mouse is, I just don't know how to get it to draw when I click the mouse. Please help ASAP, I am seeing him on the weekend =]

Offline

 

#2 2009-11-12 23:51:24

Greatdane
Scratcher
Registered: 2007-06-05
Posts: 1000+

Re: Need help making a Drawing project for my friend, please help =]

Look at this project
[blocks]
Or:
<when green flag clicked>
<forever>
<if> <mouse down?>
<pen down>
<else>
<pen up>
<end>
<go to[   mouse pointer   ]>
<end>
[/blocks]

Happy scripting!


The future belongs to those who believe in the beauty of their dreams.
        ~ Eleanor Roosevelt

Offline

 

#3 2009-11-13 00:11:55

JaredxD
Scratcher
Registered: 2009-09-10
Posts: 100+

Re: Need help making a Drawing project for my friend, please help =]

Cheers for that =]
One thing: I have buttons on the side to change colour, and one up top to clear the drawing, that one works if you click Stop then click it, but that doesnt work for the colour buttons. the script for the colour one is: (it's sprite two)
<when[ Sprite 2 ]clicked>
<set pen color to( red )>

Offline

 

#4 2009-11-13 00:13:24

JaredxD
Scratcher
Registered: 2009-09-10
Posts: 100+

Re: Need help making a Drawing project for my friend, please help =]

please help with that, also if you know how to make it so you dont have to press stop to clear or change colours, please say =]

Offline

 

#5 2009-11-13 01:13:21

JaredxD
Scratcher
Registered: 2009-09-10
Posts: 100+

Re: Need help making a Drawing project for my friend, please help =]

So yeh basically the buttons to change colour dont work, otherwise its good.

Offline

 

#6 2009-11-13 01:15:58

fg123
Scratcher
Registered: 2008-11-13
Posts: 1000+

Re: Need help making a Drawing project for my friend, please help =]

JaredxD wrote:

Cheers for that =]
One thing: I have buttons on the side to change colour, and one up top to clear the drawing, that one works if you click Stop then click it, but that doesnt work for the colour buttons. the script for the colour one is: (it's sprite two)
<when[ Sprite 2 ]clicked>
<set pen color to( red )>

That should work...  hmm


Hai.

Offline

 

#7 2009-11-13 01:25:24

JaredxD
Scratcher
Registered: 2009-09-10
Posts: 100+

Re: Need help making a Drawing project for my friend, please help =]

Weird aye =[

Offline

 

#8 2009-11-13 05:29:39

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: Need help making a Drawing project for my friend, please help =]

What your script is doing is setting the pen color for the pen associated with the button sprite.  You want to change the color of the pen on the pencil sprite.  Each sprite has it's own pen and they can all be different color.

Probably the simplest approach is to use a Broadcast from the button sprite to the pencil sprite to tell it to set it's color.


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#9 2009-11-13 05:48:14

JaredxD
Scratcher
Registered: 2009-09-10
Posts: 100+

Re: Need help making a Drawing project for my friend, please help =]

Thanks for that Paddle.
Lol just before I did it the easy way and made it 1234567 to change colours  tongue

Offline

 

Board footer