to make the turrents turn towards the enemy you will need to use the direction() function which returns the angle between one point and another.
you will also need to match that up with the right animations
try looking in the moon defender tutorial
http://game-editor.com/tutorials/moonde ... l_eng.htmlto shoot when in range it is simply a matter of working out what shooting range is and setting a vaiable like "inrange" and saying something like
if (inrange<range)
{
//do turning and shooting code
}