Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Strange Game_Enemy#actions iteration bug
#3
Ok, i think that the each iterator is not happy when you delete items in the array it is iterating through.
Let's say the array is A. I usually create a temp array B, where I put the objects I determine have to be deleted. At the end of the iteration on A, I run an iteration on B and delete the objects in it from A.
[Image: f7d70f7d-d21f-470a-b93d-fa23cfcfaeb5_zpsfe7368c0.png] [Image: facebook_icon.png] [Image: youtube_128x128-120x120.png] [Image: deviant.png] [Image: save-point.png]
Reply }


Messages In This Thread
RE: Strange Game_Enemy#actions iteration bug - by Charlie Fleed - 06-14-2011, 06:28 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
   Strange behavior RGSS Charlie Fleed 10 15,228 03-15-2009, 04:11 PM
Last Post: woratana



Users browsing this thread: