Quote:
Originally Posted by iPhoneDevelopment
It was B: a design error. I have thoroughly changed the movement of the character, and everything now works as it should  .
How do I remove the blocks that have fallen off the bottom of the screen (as the simulator seems to freeze after a certain number of blocks have fallen; I'm guessing due to memory issues)?
|
Excellent! Sorry I couldn't help more, but you know more about your project now than I do.
You can have the loop that's scrolling the "stopped" blocks also check if the block is off of the screen, and remove the block if it is. There's a trick though -- you can't modify an array while you're looping through it using the for (X y in z) method -- so post your loop that's moving the "stopped" blocks and we'll fix it up.