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: 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 16,864 03-15-2009, 04:11 PM
Last Post: woratana



Users browsing this thread: 1 Guest(s)