Create an arrow that points to an object

Hi there, I’m working on a top down view game and am wondering how I could go about implementing an arrow on the players screen that points towards a given object elsewhere in the map? So if the player goes one direction, the arrow will compensate for that on the screen and continue pointing to a given object? The arrow would be along the edge of the screen. Thank you