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

#1 2010-06-19 10:34:04

Gveradux
Scratcher
Registered: 2010-06-18
Posts: 100+

Need help for paint game

II need to know how to get my PAINTBRUSH TO PAINT WEN SOMEONE CLICKS, I WOULD BE MOST GRATEFUL IF SOME1 TELLS ME HOW 2

Offline

 

#2 2010-06-19 10:45:24

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: Need help for paint game

Code:

When green flag clicked
forever
go to [mouse pointer]
  if <mouse down>
    pen down
  else
    pen up
end

That should do the trick  smile

Offline

 

#3 2010-06-19 11:04:32

Gveradux
Scratcher
Registered: 2010-06-18
Posts: 100+

Re: Need help for paint game

Now it only colours spcific places.

Offline

 

#4 2010-06-19 11:08:43

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: Need help for paint game

Gveradux wrote:

Now it only colours spcific places.

What do you mean? It should get wherever you click painted.
You can change the size and colour of the brush with the blocks... They're pretty explanatory.

Offline

 

#5 2010-06-19 12:42:38

Gveradux
Scratcher
Registered: 2010-06-18
Posts: 100+

Re: Need help for paint game

where are the blocks?

Offline

 

#6 2010-06-19 12:46:11

coka
Scratcher
Registered: 2007-11-03
Posts: 1000+

Re: Need help for paint game

Gveradux wrote:

where are the blocks?

Code:

When green flag clicked - control
forever - control
go to [mouse pointer] - motion
 [ if - control] <mouse down> - sensing
    pen down - pen
 [ else ]
    pen up -pen
end

Is that what you want?

Last edited by coka (2010-06-19 12:46:49)


http://i42.tinypic.com/2rot8c2.png

Offline

 

#7 2010-06-19 12:49:14

Wolfie1996
Retired Community Moderator
Registered: 2009-07-08
Posts: 1000+

Re: Need help for paint game

Gveradux wrote:

where are the blocks?

When you're in Scratch, you can go to the "Pen" pallet, and there are some blocks that look like this:

[blocks]
<set pen color to(
<set pen shade to(
<set pen size to(
[/blocks]

You can use those to change the colour, shade, and size of the pen. Try experimenting with the numbers you put in (or why not try putting a variable in, such as "x position" or "y position" - some paint projects create patterns by using that combo ^^)


"...Jargon - the practice of never calling a spade a spade, when you might instead call it a manual earth-restructing implement..." - Bill Bryson, Mother Tongue

Offline

 

#8 2010-06-19 13:02:15

Gveradux
Scratcher
Registered: 2010-06-18
Posts: 100+

Re: Need help for paint game

Well it works a bit more, but when I click at the bottom of the play area, the flag turns off.

Offline

 

#9 2010-06-19 13:05:23

coka
Scratcher
Registered: 2007-11-03
Posts: 1000+

Re: Need help for paint game

Okay I whipped up the picture for you of the scripts.
http://i50.tinypic.com/2rztp4i.gif
Remember to go into presentation mode to get the best results http://info.scratch.mit.edu/sites/infoscratch.media.mit.edu/images/presentation-mode.gif


http://i42.tinypic.com/2rot8c2.png

Offline

 

#10 2010-06-19 13:05:29

Wolfie1996
Retired Community Moderator
Registered: 2009-07-08
Posts: 1000+

Re: Need help for paint game

Hmm... That's odd! Did you remember to put a "forever" loop in from "control"? If you have done that already, try opening it up in Presentation mode (click the button that looks loke a presentation screen, above the stop sign  smile


"...Jargon - the practice of never calling a spade a spade, when you might instead call it a manual earth-restructing implement..." - Bill Bryson, Mother Tongue

Offline

 

Board footer