Alice Community  

Go Back   Alice Community > Alice 2 > Works-In-Progress

Thread Tools Display Modes
Problems with arrayList?
Junior Member
Status: Offline
Posts: 3
Join Date: Jun 2011
Location: Birmingham, AL
Default Problems with arrayList? - 06-23-2011, 03:49 PM

Good afternoon,

I'm posting this question for one of our daycampers. He has created a game modelled on PacMan where the character "eats" dots. When the character gets to the dot, it's visibility is set to change to "false". However, we can only do this to about half the dots before the function stops working.

We are not getting any error messages.

I'm an intermediate Alice user and am not sure why this isn't working. Our day camper would really really like to figure out what the problem is and how to fix it. Any ideas?

Attached Files
File Type: a2w I made my own game with the help of a geniues.a2w (1.48 MB, 3 views)
Reply With Quote
Senior Member
legolizard's Avatar
Status: Offline
Posts: 242
Join Date: Jan 2011
Location: Aboard the Hyperion escaping the zerg.
Default 06-23-2011, 04:16 PM

I believe the problem lay in two places. First, the "pacman" is positioned so that he is looking slightly upward, this then causing the pacman to slowly move upward, and eventually making him to far from the dots; move closer to him with the camera and you'll see what I mean. The second problem lay in the eatDots method within the if statement I think you should put everything inside a doTogethor{}.

"Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe."-Albert Einstein
Reply With Quote

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 ©2022, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.