Making a tower defense game is a very different experience depending on what game creation software you're using.
However, usually the general premise is the same. You've got enemies who walk on a preset path at a certain speed. You would use Pythagoras Theorem to figure out the distance between towers and the enemies.
You would also need a health system for each enemy and other stuff as well.
Unfortunately I cannot give you detailed information unless you tell me what game creation software you're using.
However, usually the general premise is the same. You've got enemies who walk on a preset path at a certain speed. You would use Pythagoras Theorem to figure out the distance between towers and the enemies.
No you wouldn't, you can just use the distance formula.
What you would still need to use is some basic trigonometry to calculate the angles you need to shoot at.
That distance formula you've got there is really just an extended version of Pythagoras anyway.
Generally the towers shoot fast enough that you can just make the missiles homing. Having towers that miss and you can't control their aiming is horrible design anyway.