Ok,I'm working on a turn based strategy game. I have the movement down, turns down, combat somewhat down, and I'm pretty positive I can get switching from unit to unit.
Here's my question: Is there anyway I could have it to where all of player 1's units use this group of code when they move/attack/spell etc. and they just call the code when they need it? i.e. archer finished moving. I press Q to switch to my swordsman. I then use the arrow keys to move him next to the enemy and then press shift to attack the enemy. is there a way that he archer and the swordsman, and all of player 1's units use the same code and they just call it when needed?
Thanks for the help.