Game Development Community

2d text in 3d

by Wolfgang Kurz · in Torque Game Engine · 10/31/2006 (9:00 am) · 1 replies

Hi all,

yet another question:-)

Is it possible to have player names above their heads and maybe from there have chat conversations apear above chars?

#1
10/31/2006 (9:20 am)
Quote:

http://www.garagegames.com/mg/forums/result.thread.php?qt=47897

OK, just to wrap this up, if you're looking at doing speech bubbles, you'll need to do the following:

1. Add a variable to player.cc to hold your text

2. Update the text to all clients by updating it on the server (adapting a resource such as http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=2698 should get you most of the way there!)

3. Add a speech bubble graphic (adapting the bitmap display code in a resource such as http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=9805 should help here).

4. Draw the text above each of the players heads by adapting guiShapeNameHud.

NB doing this gets you 99% the way there, but I'm still having the problem of text floating around off-centre of the bubble graphic... but this is a challenge I am yet to solve!


so, yes you can. in fact if you can code it, you can do pretty much anything.