names of characters over there heads

Blitz3D Forums/Blitz3D Beginners Area/names of characters over there heads

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

ok it seems to be working...the only issue I have is that I want to know how to make it only show their names if you are close to their proximity...


Use EntityDistance(), with something like:

If EntityDistance(Player\Entity,MainCamera) < 10
    Text ProjectedX(),ProjectedY(),Player\Name
EndIf

That's just a really rough example; obviously I have no idea how your code is arranged.

I totally agree with Stevie G, though; don't use Text(). It's slow. (Dog slow? Not all dogs are slow... ;D) Use sprites, since it'll also take care of the resizing-with-distance problem.