 udca | Hi, I’m trying to save my player’s skill information. Right now, I have 10 skills and I want to keep the level of each skill in an array (ex : skillLevel[0] = 3, skillLevel[2] = 1 etc.) I’m having a hard time figuring out how to save arrays in the gamestate. It doesn’t seem to be supported, but I don’t understand why. Honestly, I don’t really know where to start. I’ve added other values in the gamestate without a problem, but these arrays really bug me. Any help would be very appreciated! |
 CyberGreg | NSCoding (& NSEncoder) requires that items are “objects” eg NSNumber, NSDictionary, etc. What you could do is load your integer array into an NSArray in your save method and reload your integer array in your load method. |
 udca | Got it working! Thanks a lot! :) |