HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Centering TextTags

01-10-2009, 03:07 AM#1
Beardo
Couldn't find a good answer for this one..
How do you make floating text center on top of a unit perfectly? Anyone whos experimented with this will notice it will change as the facing (of the current players camera?) changes.
01-10-2009, 04:45 AM#2
Ammorth
Offset by char width, get current camera angle of each player and adjust offset locally. Aka, not worth doing.
01-10-2009, 07:13 AM#3
DioD
getting string lenght char by char is damn slow also it trashing string table.
01-10-2009, 07:19 AM#4
Ammorth
Quote:
Originally Posted by DioD
getting string lenght char by char is damn slow also it trashing string table.

Slow, yes. Adding extra stings to the string table, not so much. Only 255 possible chars with ASCII, if you analyze one at a time.
01-10-2009, 08:04 AM#5
Beardo
Quote:
Originally Posted by Ammorth
Offset by char width, get current camera angle of each player and adjust offset locally. Aka, not worth doing.

the thing is that the tag will only be visable to users within a relatively small radius, and the camera is 3rd person fixed, so getting the angle isn't a problem, it's just the offsetting based on the width which would be semi-challenging