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

#1 2012-07-14 21:05:19

Firedrake969
Scratcher
Registered: 2011-11-24
Posts: 1000+

Color changing for paint program

I am making a paint program.  How do I make it so the brush's color changes if it touches a certain sprite?  The program is here.

Last edited by Firedrake969 (2012-07-14 21:12:20)


Click the sign.
https://s3.amazonaws.com/eterna/eterna2/logo2.png

Offline

 

#2 2012-07-14 21:19:57

zammer990
Scratcher
Registered: 2012-01-22
Posts: 500+

Re: Color changing for paint program

Firedrake969 wrote:

I am making a paint program.  How do I make it so the brush's color changes if it touches a certain sprite?  The program is here.

forever
if <touching [sprite v]?>
set pen color to [#FFFFFF]
Or
wait until <touching [sprite v]?>
set pen color to [#FFFFFF]

Last edited by zammer990 (2012-07-14 21:20:41)


http://i45.tinypic.com/2ynq7nn.jpg Play now!

Offline

 

#3 2012-07-15 03:10:38

amcerbu
Scratcher
Registered: 2009-07-21
Posts: 500+

Re: Color changing for paint program

I find that the ...

set pen color to (0)
set pen shade to (0)
set pen size to (0)
... blocks are the most useful, since you can control the pen without manually inputting colors with the selector.

Last edited by amcerbu (2012-07-15 03:11:12)

Offline

 

#4 2012-07-15 17:16:43

Firedrake969
Scratcher
Registered: 2011-11-24
Posts: 1000+

Re: Color changing for paint program

zammer990 wrote:

Firedrake969 wrote:

I am making a paint program.  How do I make it so the brush's color changes if it touches a certain sprite?  The program is here.

forever
if <touching [sprite v]?>
set pen color to [#FFFFFF]
Or
wait until <touching [sprite v]?>
set pen color to [#FFFFFF]

That's what I did...  download the project to see the scripts.


Click the sign.
https://s3.amazonaws.com/eterna/eterna2/logo2.png

Offline

 

Board footer