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.

DarkBASIC Discussion / Function For Text above 3D Objects heads?

Author
Message
Xenocythe
19
Years of Service
User Offline
Joined: 26th May 2005
Location: You Essay.
Posted: 23rd Aug 2005 22:21
What is that function? You know, like the Charcter's name above the head in 3D space.
Jozers
20
Years of Service
User Offline
Joined: 19th Nov 2004
Location: If I knew I would tell you!!
Posted: 23rd Aug 2005 22:50 Edited at: 23rd Aug 2005 22:50
http://forum.thegamecreators.com/?m=forum_view&t=44367&b=6

Here is the function you seek

Life is like a box of chocolates...
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 23rd Aug 2005 23:43
A simple demo to show how to do it yourself:



TDK_Man

Xenocythe
19
Years of Service
User Offline
Joined: 26th May 2005
Location: You Essay.
Posted: 24th Aug 2005 01:17
Thanks.
Sven B
20
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 24th Aug 2005 09:12
You could also use object screen x(id)/object screen y(id) for this. It will return the object's position in the screen.

Immunity and Annihalation makes Immunihalation...
Xenocythe
19
Years of Service
User Offline
Joined: 26th May 2005
Location: You Essay.
Posted: 2nd Oct 2005 21:51
Sorry to bring up such an old topic, but When I use more then one of these (different object numbers) none of them show up. Any particular reason why?
Me!
19
Years of Service
User Offline
Joined: 26th Jul 2005
Location:
Posted: 3rd Oct 2005 11:52
nope!

code?

should work, but my crystal ball is all fogged up so I can`t see the code you have



why do they say Aliens are gonna be friendly?, surely the agressive ones wipe out the peaceloving ones, so all you have left out there are crazed flesh eating interstellar monsters.
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 3rd Oct 2005 16:16
Whatever code you have, you might want to check that:

If you have 10 objects, you must have 10 plains and 10 images loaded.

It's a while since I did it, so I can't remember for sure, but I think that if you re-use the same image number to load and texture each plain, it gets deleted. If you are doing it that way, use separate image numbers.

TDK_Man

Impreza
22
Years of Service
User Offline
Joined: 7th Nov 2002
Location:
Posted: 3rd Oct 2005 21:12 Edited at: 3rd Oct 2005 22:59
hey,
I don't have db in front of me but I have source code I edited. credit to the DB user's who's code was used in this
(including UW Design)

All you have to do is assign the object number of the object to Obj_Number and subsequently, assign a name to Obj_Name$. The mouseclick while endwhile clause would be where the do loop clause usually goes but I did not use do loop so as to speed up the program. I did not create an object in the code since you most likely have made one already nor made a matrix nor object or camera movement code so make sure to place the different parts of this source code to their corresponding parts in your program:



set mipmap mode 1: set matrix texture 1,1,1: set spot light 1,0,90: set normalization on: sync rate 0: statistic(1): flush video memory
autocam off: always active on: hide mouse: set window on
Impreza
22
Years of Service
User Offline
Joined: 7th Nov 2002
Location:
Posted: 3rd Oct 2005 22:56
are your db progs still crashin' with dll's?

set mipmap mode 1: set matrix texture 1,1,1: set spot light 1,0,90: set normalization on: sync rate 0: statistic(1): flush video memory
autocam off: always active on: hide mouse: set window on

Login to post a reply

Server time is: 2025-05-22 12:59:47
Your offset time is: 2025-05-22 12:59:47