Alice Community

Alice Community (
-   How do I...? (
-   -   Help with an exercise. (

Kirbya 11-09-2006 10:49 AM

Help with an exercise.
1 Attachment(s)
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 01: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 03: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".

All times are GMT -5. The time now is 05:40 AM.

Copyright ©2019, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.