Hi, for my game i plan to load certain data for enemies randomly for different levels from an XML file. I'm unable to get the XML file to read and write the results in a test textbox. Can anyone explain what i'm doing wrong?
Event Sheet:
XML File:
<?xml version='1.0' encoding="UTF-8"?>
<data>
<enemies>
<enemy id='1'>
<animation>cat</animation>
<health>2</health>
<jumping>false</jumping>
<targetplayer>false</targetplayer>
<speed>150</speed>
<jump>600</jump>
</enemy>
<enemy id='2'>
<animation>bat</animation>
<health>1</health>
<jumping>true</jumping>
<targetplayer>true</targetplayer>
<speed>250</speed>
<jump>600</jump>
</enemy>
</enemies>
<levels>
<level id='1'>
<enemy id='1'>1</enemy>
</level>
<level id='2'>
<enemy id='1'>2</enemy>
<enemy id='2'>1</enemy>
</level>
</levels>
</data>[/code:1jbg5c1q]
Any tips appreciated