Alice Community  

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

Reply
 
Thread Tools Display Modes
Issue with lists..
Old
happydude001
Guest
 
Status:
Posts: n/a
Default Issue with lists.. - 03-27-2010, 11:50 PM

Hey,

So I'm working on an assignment for school. I need to have 1 object or multiple objects perform a task when a key is hit.

In my algorithm, I figured the easiest way to do so would be by using a list, and adding objects to the list and removing them, based on a boolean value. However, I've had nothing but trouble with this as everytime the process runs, rather than just add the 4 objects to the list, it just repeats over and over (which it shouldn't) and when it comes to removing them, it crashes.

Help?
   
Reply With Quote
Old
jediaction
Senior Member
 
jediaction's Avatar
 
Status: Offline
Posts: 5,064
Join Date: Jul 2009
Location: Bel Air, Maryland
Default 03-28-2010, 09:42 AM

You cant remove them? I dont quite understand, can you post the project then i can tell you what to do from there


Website: www.salokingames.com
FaceBook: www.facebook.com/SalokinGames
   
Reply With Quote
Old
Niteshifter
Guest
 
Status:
Posts: n/a
Default 03-29-2010, 02:02 AM

Check the adding function on if it has something to escape the endless loop or not. As for the removing one, you should check the variables as that's the likely cause.

(I've had to deal with too many of these kinds of list problems in my A* )
   
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.