I run through the tutorial and i decided to do some Dungeon Arena battle. Now i do not really have programing experience so i decided to do the tutorials. I am fighting the Ogres. I clicked on the Human base building ready to build my strategy. Now for some reason i am unable to bring the hero into battle and i cannot figure out what i am doing wrong. For EG
at the bottom of the file i made an if statement which says
If(hero < = 0)
Now all this does is build solders, it does not build the hero.
Then i saw the array so i decided him to add him there. Everything appeared to be working well, until he had to spawn for a second time. At that point no more troops come out. I also tried to call him from inside the function where he is defined with no avail. I tried to make 2 this.build functions one under the other and it still didn’t work. I kind of hit a road block. If someone could give me some suggestions on how to spawn him it will be much appreciated.