Alice Community  

Go Back   Alice Community > Alice 2 > How do I...?

Reply
 
Thread Tools Display Modes
Help with an exercise.
Old
Kirbya
Guest
 
Status:
Posts: n/a
Default Help with an exercise. - 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.
Attached Files
File Type: a2w spanish.a2w (545.3 KB, 505 views)
   
Reply With Quote
Old
DrJim
Guest
 
Status:
Posts: n/a
Default 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.
   
Reply With Quote
Old
roofy
Guest
 
Status:
Posts: n/a
Default 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".
   
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



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