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
For example, If I say I want a red square the square would then change to red.
Offline
This should be in New Scratchers forum area, but nevertheless I'll help. Just follow these scripts in Scratch V.1.4
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!!
Offline
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
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
Do this
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
would the colours be a variable ?
eg. answer = blue
would i put blue as the variable, cause it doesn't seem to be working
Offline
ohh okay, thank yoou !
Offline