If you for example have an arrow sprite, you can point it in a direction with SPANG or something like that. For the angle formula, you first need the X and Y distance to the object.
DX = objectX - spriteX
DY = objectY - spriteY
then we can use the formula to get the angle in radians
RADANG = ATAN2(DX, DY)
now we just have to convert it to degrees
DEGANG = DEG(RADANG)