Does anyone know how to put name above player's head?
Name above the player's head?
Blitz3D Forums/Blitz3D Programming/Name above the player's head? Use the cameraproject command.
Obviously using the command 'text' while in 3d mode is not the best way of doing it but the basic idea for getting a point above the character's head is there.
Cameraproject mycamera,entityx(myplayershead,true),entityy(myplayershead,true),entityz(myplayershead,true) if projectedz()>0 then ;in front of camera text projectedx(),projectedy()-20,"My Characters Name Is abcdefg etc",true,true endif
Obviously using the command 'text' while in 3d mode is not the best way of doing it but the basic idea for getting a point above the character's head is there.
Try this code, but as Matty suggests, it would be best to replace the Text command with a sprite containing the text, since it will be slow on some graphics cards.