here ya go..
Function LabelEntity (camera, entity, label$)
If EntityInView (entity, camera)
CameraProject camera, EntityX (entity), EntityY (entity), EntityZ (entity)
w = StringWidth (label$)
h = StringHeight (label$)
x = ProjectedX () - (w / 2) - 1
y = ProjectedY () - (h / 2) - 1
Color 0, 0, 0
Rect x, y, w + 2, h + 2, 1
Color 255, 255, 255
Text x, y, label$
EndIf
End Function
just put LabelEntity after renderworld and before flip as you doing with text command...enjoy..
Function LabelEntity (camera, entity, label$)
If EntityInView (entity, camera)
CameraProject camera, EntityX (entity), EntityY (entity), EntityZ (entity)
w = StringWidth (label$)
h = StringHeight (label$)
x = ProjectedX () - (w / 2) - 1
y = ProjectedY () - (h / 2) - 1
Color 0, 0, 0
Rect x, y, w + 2, h + 2, 1
Color 255, 255, 255
Text x, y, label$
EndIf
End Function
just put LabelEntity after renderworld and before flip as you doing with text command...enjoy..