Bullet fired from turret.. follow and hit moving MC on stage

i recently learned how to program a tank-type game… i was able to make the turret follow the mouse and fire bullets that would move to the direction the turret was pointed at…

what i’m trying to do now though is make the bullet follow an object moving on stage… sort of like a heat-seeking missile…

anybody here care to share their knowledge on how to get started with this?