1
Ask a Question / 2D List question
« on: September 27, 2015, 03:43:06 pm »
I'm using nested lists to make a grid of tiles for a game.
when running the 'clear' command I want to iterate through the list and remove any tile with a certain value, however, as I remove something from the list the 'repeat [number of items in
when running the 'clear' command I want to iterate through the list and remove any tile with a certain value, however, as I remove something from the list the 'repeat [number of items in
- ]' returns with a reference error as the list is now shorter than when the loop started.
Is there a way to stop or restart a definite loop, or will I need to pre-define each tile beforehand and change the values?