A children's author who admitted grooming teenage girls online used and abused his position as a ruse for his own sexual gratification, a judge has heard.