Greg Hauptmann
Registered User
Join date: 30 Oct 2005
Posts: 283
|
11-30-2005 13:37
Hi,
Whats the best way to implement a dynamic scoreboard - i.e. how to write/update text on an object?
I've written text on an object via creating an image/texture, however this won't work for a dynamic case. Hopefully it won't come down to having to develop an image for each letter in the alphabet and arranging an array of images inworld? (or will it)
Thanks
|
Kris Ritter
paradoxical embolism
Join date: 31 Oct 2003
Posts: 6,627
|
11-30-2005 13:39
your best bet is Xytext, or a derivitive of. Check out this thread
|
Luc Aubret
Oreo-eater
Join date: 14 Sep 2005
Posts: 86
|
11-30-2005 14:13
I'm assuming there's some reason - the shape of the object perhaps - that is preventing you from using various llSetText'ed prims to displaying the scores?
|
Osgeld Barmy
Registered User
Join date: 22 Mar 2005
Posts: 3,336
|
11-30-2005 15:25
llSetText is only visible when your right ontop of the object... it would be NICE if it could be seen more than a cupple few m away, or even able to make it larger.(hint hint LL)
|
DoteDote Edison
Thinks Too Much
Join date: 6 Jun 2004
Posts: 790
|
11-30-2005 18:19
It would help if you define what you mean by 'dynamic'. Do you want a rolling score like a gas-pump, or simply a score that changes every few seconds or so?
Either way, the best idea is to use an imagemap. If the score needs to roll like a gas-pump, then build the map with the numbers counting up vertically. Either way, build your map with monospaced characters. Program a couple lists into your scoreboard display script, the lists would contain the offsets for each character and a list of characters - listU, listV and listChars, for instance. When you need to display a character, search the list for that character, grab its index, then apply a texture offset using the same index from the offset lists.
|
Greg Hauptmann
Registered User
Join date: 30 Oct 2005
Posts: 283
|
11-30-2005 18:57
I was more considering a "highest score" board, with a summary of the person and their score, say on a flat panel above the game device. I would like to be able to have the text reasonably large such that it is visible from say 20m away.
e.g. HIGHEST SCORES Joh Blogs 12345 John V 2355 Fred N 123
Ideally all aligned (not sure how to align in this forum post)
|
Luc Aubret
Oreo-eater
Join date: 14 Sep 2005
Posts: 86
|
11-30-2005 20:11
Dote's idea is the lowest prim, but if prim count is not a factor than I have to agree with the xytext suggestion.
That is, if you're determined to script this yourself. I know there's a guy who makes a pretty involved sign system I've seen on SLE. You may be able to save yourself some time by finding a way to use that; I know they're moddable, so you can probably make them pretty big.
|
Patch Lamington
Blumfield SLuburban
Join date: 2 Nov 2005
Posts: 188
|
Notice boards and image maps
12-01-2005 03:45
A sign board wason my list of things to try out, after I get a chance to try out xytext
My initial idea was to try something like Dote suggests but doesnt that limt you to one char per prim side? Or am I missing something? Is it possible to apply multiple arbitrary small sections of a texture to a single side?
patch
|