I am trying to spawn an enemy using my SpawnPoint sprites in my Game Layout.
Right now it loads the last entry in the NPCs.xml file, I want it to load the right NPC based on the "SpawnEnemy" variable on the SpawnPoint.
So I have an entry in the NPCs.xml called Training Dummy. I want it to load the TrainingDummy sprite and then set the hp, name, and so on accordingly.
Edit: What would be great, but doesn't work or atleast not that I know of, would be: Training Dummy < Set Name WHERE Node Name = SpawnPoint.SpawnEnemy
Know what I mean?
Is there a way to achieve this?