Quote:
Originally Posted by claudiaj
yes, the order must be random. I'm trying to make a whack-a-mole game, and the moles have to appear randomly. It was suggested I use a boolean array to check for true/false on each mole, so after one moved, it would switch to false and not move again. or wait a moment and move back down. I can't figure out how to do that. Everything I've tried hasn't worked so far.
They also need to react to being bopped, which I think can be handled through a new event.
This hasn't been covered in the textbook. It's a bit more advanced. If you know how to do this, I'd really appreciate your input. Thanks!
|
Claudiaj, you didn't mention which text book it is mentioned in that you are using for your class. However the project you are attempting to do is included in the text by Dann, Cooper and Pausch - it's on page 239. They are attempting to teach you how to use a List structure. You might wish to re-read from the text.
Good luck.