I'm trying to make a flash RTS, but I have no clue how to get a selected unit to move/attack where I click. I thought about just dragging them and they attack automatically (kinda like Dungeon Keeper) but how would I make them attack enemies within a certain distance?
And how would I script the enemies? I need them to be able to wander around in an enclosed area and attack the player's units when they get within a certain distance. I also need to make sure that none of the units can walk through/be dropped on/stand on buildings and walls. I've got an HP script in mind but if anyone knows a good one and could post it I'd be grateful. THanks in advance to everyone who helps.