This is, much probably, something that many people were looking for.
First snippet is the function that point sprite 1 towards sprite 2. Same as Point Object, but in 2D something they could have added in DBPRO by default, but didn't for some reason.
function pointsprite(from,towards)
sx1 = sprite x(from)
sy1 = sprite y(from)
sx2 = sprite x(towards)
sy2 = sprite y(towards)
dsx = sx2 - sx1
dsy = sy1 - sy2
angle = atanfull(dsx,dsy)
rotate sprite from,angle
ENDFUNCTION
And this one points the sprite towards a given x and y position. Quite like the other function, but just needs one sprite and 2 coordinates.
function pointsprite2pos(from,x,y)
sx1 = sprite x(from)
sy1 = sprite y(from)
sx2 = x
sy2 = y
dsx = sx2 - sx1
dsy = sy1 - sy2
angle = atanfull(dsx,dsy)
rotate sprite from,angle
ENDFUNCTION
This time, I believe I was of some help. I've seen people asking how to find the angle between two sprites - much probably to point one to another - and now, finally, this is possible in 2D in the same way as it is in 3D.
Thanks to @Mage who gave me the inspiration that made this functions possible.
[size=+2]Forever and one[/size]