Help! Arrays in arrays
I'm trying to save multiple fight data.
for i=0,19, save each joint_info into body[i], thus "body" is a list of all your joint info
for each frame, save "body" into moves[frame], where frame is a counter for enter_freeze. thus, "moves" is an array of all your bodies for each frame.
Each "moves" is stored into fight[n], where n is a counter, and fight is an array of all your data.
When I play back the data, it seems to save over each "moves" in "fight" with your current moves. I know the counter is working, because I display it. I know it does save each "body", as i display it and it shows the current joint info. But all the "moves" seem to have been set to the same "body" for the current "frame".
When I retrieve data, I use use for x,y in pairs(fight). Then use moves2, body2, values (for joint info). Plus, the effects of my script reflect the storage error, so I know it isn't how I read the data off.
Anyone have ideas what's wrong?
EDIT
No longer matters. How do I delete my own posts? argh...
Last edited by FNugget; Jan 13, 2008 at 05:25 AM.