I am making a game where you can type in a question and the sprite will answer it for you. I am trying to find a way so that if someone types in a question it does not know the answer to, it will say: Sorry, I do not know the answer to your question.
This is what the programing looks like:
blocks<if><forever><when green flag clicked>/blocks answer is ---------<say[yes!
Offline
sorry, i will do that again:
<forever if><when green flag clicked><(answer <=> do you like pie )><say[ yes
Last edited by sweetgames (2010-01-03 21:27:26)
Offline
Please Answer!!!!!!!!!!!!!!!!!!!
Offline
If you were going to have many questions, I would find it easiest to put your questions in a list. Make a list in the variables menu and make every question have a seperate item. Then, use a script like this:
When Green Flag Clicked
Ask "type a question" and wait
If list contains answer
if answer = do you like pie?
say "yes" for 2 seconds
Else
Say "I don't know the answer to that question" for 2 seconds
Last edited by shadow_7283 (2010-01-03 22:40:39)
Offline
Thanx!
Offline
Your welcome!
Offline