Having Trouble with spawning enemies

Get help using Construct 2

Post » Mon Mar 25, 2013 5:51 pm

Hello, I am having some troubles in the Spawnsheet of this capx:

https://dl.dropbox.com/u/73299017/capx/MyORPG.capx

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?

Thanks.Equinox802013-03-25 18:46:09
B
26
S
5
G
5
Posts: 98
Reputation: 4,734

Post » Mon Mar 25, 2013 6:49 pm

I updated the capx, I am really close but still don't know how to do it, I have it so it loads based on the SpawnPoint.SpawnEnemy, right now it loads TrainingDummy1 on all spawn points.

I tried adding another ForEach SpawnPoint overtop of the main foreach xml node however when I do that they all load TrainingDummy. The left 3 should load TrainingDummy1, and the right 3 should load TrainingDummy2.
B
26
S
5
G
5
Posts: 98
Reputation: 4,734


Return to How do I....?

Who is online

Users browsing this forum: alextro, h1k3, Unconnected and 0 guests