View Full Version : Help with an exercise.
Kirbya
11-09-2006, 09:49 AM
Alright I'm doing exercise 11. in chapter 6 of the alice book. Im trying to get it so that when the word gato is clicked the cat says "Si, Si!" and when its not clicked the cat should shake it's head left and right. It's basically just like the zeus exercise but for some reason mine isn't working.
I'm not sure what I'm doing wrong so somone please help me out here.
DrJim
11-09-2006, 12:52 PM
You're always passing "gato" into the methods so the cat is always saying yes. You need to pass the parameter clicked on - and I also recommend you limit the number of options recognized.
Look at the Zeus example a bit more - there is a lot of detail in the program listings.
roofy
11-09-2006, 02:23 PM
Well, I cannot download your file because I am only on a luch break from school. However, just by picturing what you want to do, I can see that you want to check only and only if "gato" is clicked on. Also make sure that in you checking you pass the parameter "mouse under the object".