By no means a dumb question infact wish there was someone to ask when I was trying to do it.
So it boils down to the type of game and the approach you want to use STATEMACHINE or EVENTMECHANICS
But I'll give a quick example here
Connect the body_entered, body_exited
signals of the area node and enable/disable movement code
var follow_player = false
func _on_body_entered(body):
if body == player_node:
follow_player = true
func _on_body_exited(body):
if body == player_node:
follow_player = false
func _process(delta):
if follow_player:
#movement code here