Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / using object positions for text position

Author
Message
JABBER
20
Years of Service
User Offline
Joined: 22nd Dec 2004
Location: Indiana, USA
Posted: 1st Dec 2007 17:10 Edited at: 1st Dec 2007 17:10
Sorry about the number of questions, keep running into problems here. This time I'm trying to get a text label to follow an object but the text will only place itself on the last object position defined.
here is the code
thanks yet once again


Retired DEV team member Targetware.net
Retired DEV team memeber BF 1918 MOD
http://hosted.filefront.com/JABBER1975
Zotoaster
20
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 1st Dec 2007 18:10
What do you mean only the last object position defined?

By the way, I would look into arrays if I were you.

"It's like floating a boat on a liquid that I don't know, but I'm quite happy to drink it if I'm thirsty enough" - Me being a good programmer but sucking at computers
LBFN
18
Years of Service
User Offline
Joined: 7th Apr 2007
Location: USA
Posted: 1st Dec 2007 20:30
I would suggest grabbing an image of the text, making a 3D plane (plain) and texturing the plane with the image. You could then position it at the limb coordinates. The plain with the text on it turns because you are using the limb coordinates, but you could easily change that so that it is positioned based upon the object's coordinates.

Here you go:



I slowed it down a little and changed one of the text colors to red so that you could easily see where one is passing before the other.

Hope this helps.

LB
BMacZero
19
Years of Service
User Offline
Joined: 30th Dec 2005
Location: E:/ NA / USA
Posted: 2nd Dec 2007 18:09 Edited at: 2nd Dec 2007 18:12
I'm not sure I understand, why not just use:



Edit: Actually, I see that that is what you are already doing. What is wrong with it?


"Ok, so that wasn't funny. I don' have any good Christmas jokes."
jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 20th Dec 2007 19:05
Probably nothing if it works - but you must admit - doing a "simpler" version (a sprite instead of a plain) would allow for GFX like a health bar hovering over the object's "head" without having to try and turn it to face the camera etc.

Login to post a reply

Server time is: 2025-05-30 09:10:28
Your offset time is: 2025-05-30 09:10:28