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

#1 2011-02-28 21:26:52

chelleanne
New Scratcher
Registered: 2011-02-24
Posts: 7

How to add colour ?

Did anyone know how to set up scratch so that you can ask the person running your scratch what colour they would like then when they state their colour that's what drawing would be coloured.

For example, If I say I want a red square the square would then change to yellow.

Offline

 

#2 2011-02-28 21:47:13

chelleanne
New Scratcher
Registered: 2011-02-24
Posts: 7

Re: How to add colour ?

For example, If I say I want a red square the square would then change to red.

Offline

 

#3 2011-02-28 22:23:44

kingofdallamas
Scratcher
Registered: 2010-03-07
Posts: 500+

Re: How to add colour ?

This should be in New Scratchers forum area, but nevertheless I'll help. Just follow these scripts in Scratch V.1.4  smile 
The square's scripts:

When Green Flag clicked, ask <What color do you want to use> if <<answer>=blue, switch to costume _ if <<answer>=red switch to costume_
and etc. etc. depending what colors you are using.

Good luck and hope this helps! If you any further questions, don't be afraid to ask!!  big_smile


http://i853.photobucket.com/albums/ab99/Gilgamesh1192/Ninja%20Saga/ElementalJutsus2.gifhttp://i27.photobucket.com/albums/c192/BoomKaTish/GIF/thgfhgfhfhgf.gif
ハロー友だち!

Offline

 

#4 2011-02-28 22:36:28

kayybee
Scratcher
Registered: 2009-12-07
Posts: 1000+

Re: How to add colour ?

Actually, this should be here, even though she's a new scratcher, this is asking about scratch. many new scratchers use that forum for all about scratch.

Offline

 

#5 2011-02-28 22:42:38

chelleanne
New Scratcher
Registered: 2011-02-24
Posts: 7

Re: How to add colour ?

Oh im confused, I was wondering how to change the colour of my pen when the user answers the question. So if they said "red" as their answer the pen ink would turn red. I tried to use if statements for example:
http://scratch.mit.edu/forums/viewtopic.php?id=57723#req_message http://scratch.mit.edu/forums/viewtopic.php?id=57723#req_message

but it wouldn't change the pen colour :S

Offline

 

#6 2011-02-28 22:44:59

kayybee
Scratcher
Registered: 2009-12-07
Posts: 1000+

Re: How to add colour ?

oh, i know. just test out the pen color. try 100, 50, 150, and see the different colors. choose the number you are satisfied with, or just use the dropper, and go "if answer=red, change pen color to _" and do stuff like that.

Offline

 

#7 2011-02-28 22:45:27

OldWheezerGeezer
Scratcher
Registered: 2010-06-04
Posts: 500+

Re: How to add colour ?

Do this  smile

Ask [What color would you like?] and wait
If answer = red
set pen color to [red]
If answer = blue
set pen color to [blue]
If answer = green
set pen color to [green]
If answer = purple
set pen color to [purple]

etc...

Offline

 

#8 2011-02-28 23:00:20

chelleanne
New Scratcher
Registered: 2011-02-24
Posts: 7

Re: How to add colour ?

would the colours be a variable ?
eg. answer = blue
would i put blue as the variable, cause it doesn't seem to be working  sad

Offline

 

#9 2011-02-28 23:06:56

kayybee
Scratcher
Registered: 2009-12-07
Posts: 1000+

Re: How to add colour ?

you don't need a variable.

in sensing, there's a ovalish block that is "answer". use that.

Offline

 

#10 2011-03-01 00:05:05

chelleanne
New Scratcher
Registered: 2011-02-24
Posts: 7

Re: How to add colour ?

ohh okay, thank yoou !  smile

Offline

 

#11 2011-03-01 00:22:49

kayybee
Scratcher
Registered: 2009-12-07
Posts: 1000+

Re: How to add colour ?

You're welcome!

Offline

 

Board footer