i am trying to create a code in which when a unit (in turn based strategy) is attacked and when from his life is drained the drained amount to be displayed above it for a couple a seconds.

so my idea was after the damage calculations to display a text using the DxDraw Canvas above the unit but i couldnt do it because i cant get the coordinates of the unit on the screen the only coordinates i have are his place in the map which arent any good right about now cous the canvas displays the text only in the visible part of the screen and coordinates like 1000 5000 arent in the visible part of the screen. (i know the explanation isnt very good but i cant do it better hope you understand what i mean).

so thats my problem right about now