After tearing my hair out for a while now I have decided I need the help of people who know what they're doing (at least a bit more that I do!).
What I want to do:
My basic problem is that I have an xml full of all of the variables that govern my enemy's attributes. I want to load this into an array at the start of levels. I would then spawn a blank enemy with instance variables that are populated from the array based on spawning logic e.g. spawn enemy, get type 1 stats, set animation to frame 1, off you go.
I created a mini project to test the basics of this out and I got it to work fine. Much smaller xml and array but all in the same layout and format. I tried implementing this in my main project and everything works right up until I try and do anything with parsing the xml that has been loaded.
xml i'm trying to use is:
This is the code I'm trying to use:
<img src="https://docs.google/file/d/0B3RLm-IgrMQEVGN1N0ZBSjVrQmM/editusp=sharing" border="0" />
I'm hoping it's something really dumb that I've done. I only started the xml stuff a couple of nights ago.
Any help would be much appreciated...