Alice Community  

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

Reply
 
Thread Tools Display Modes
Lunch Lady - Ninja Game (Ch 6 Pr 3)
Old
KTO
Junior Member
 
Status: Offline
Posts: 1
Join Date: Nov 2011
Default Lunch Lady - Ninja Game (Ch 6 Pr 3) - 11-08-2011, 10:58 PM

Hey!

I've been struggling in my class lately since there's so much math involved :/

Basically, the assignment is to have an evil ninja move around randomly in a cafeteria and the user is supposed to click on the ninja to save it 5 times.

I am supposed to create a method called "checkIfNinja" that checks if the ninja was clicked on by the mouse by linking it with the parameter "who".

I've tried a bunch of different things and I'm not sure where to go. It seems that whenever I click anywhere in the world, it adds one "point" (a cafeteria tray) so it's not exclusive to clicking on the ninja. I've been trying to follow the chapter, but to no luck.

Any help is greatly appreciated!

Thanks!
Attached Files
File Type: a2w Project 6-3.a2w (2.39 MB, 73 views)
   
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 ©2017, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.