How do I get something to rotate in the direction it's moving

it’s a sprite set to constantly move to the XY cords. of a physics 2.0 object, and I would like to make it rotate so it points in the direction it’s traveling (it’s an arrow)

How are you moving the sprite? Can you show the events?

this is how the sprite moves,

and this is how the object it’s attached to moves.
it’s easy to predict the movement of the player object when it’s on the ground, but when airborne I would like to have the angle it’s moving on.