after about 50 post edits heh everything you need can be found in this example:
http://www.blitzbasic.com/codearcs/codearcs.php?code=379below is a version I used in a specific situation with the Z distance specified.
Function PositionEntityFrom2D (usecam, entity, x2d#, y2d#, z3d#, positionGlobal = 0, camZoom# = 1.0)
gw = camWidth
gh = camHeight
dx# = -((gw / 2) - x2d)
dy# = (gh / 2) - y2d
parent = GetParent (entity)
EntityParent entity, usecam
;z3d# = Abs (EntityZ (entity))
div# = (gw / (2 / camzoom)) / z3d
PositionEntity entity, dx / div, dy / div, z3d, positionGlobal
EntityParent entity, parent
End Function