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 / Printing variable like mph or damage percentage at the bottom of screen in 3d game

Author
Message
madmax700
20
Years of Service
User Offline
Joined: 21st Mar 2005
Location:
Posted: 26th Mar 2005 22:31
I want to print some variable for a game I'm working on at the bottem of the screen or in a little box on the side while the game is playing, don't know how. Also getting a little glitch when gluing object to limb, It's moving to different places when it glues. I want it to attach at the point of hit object() somethimes it's not even in screen. Anyway if anyone got any suggestions, please help. Thanks
NanoBrain
20
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Portland, OR
Posted: 26th Mar 2005 23:35 Edited at: 26th Mar 2005 23:39
madmax700,

To print a variable onto a 3d screen, you must use the text and center text commands. The syntax for them is:

TEXT x, y, string$

CENTER TEXT x, y, string$

string$ can either be a string variable or a string of words, as:

TEXT x, y, "Hello World!"

These commands are automatically printed and cleared from the screen each loop, in a 3d screen at least, keeping you from having to use CLS, which also clears the 3d screen. I have found, though, that using them not in a 3d screen, the CLS command is necessary.

Sorry to say I haven't experimented with glueing and manipulating limbs.

+NanoBrain+
madmax700
20
Years of Service
User Offline
Joined: 21st Mar 2005
Location:
Posted: 27th Mar 2005 08:41
Thanks Nanobrain
BatVink
Moderator
22
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 27th Mar 2005 23:03
There's a bug in Glue Limb. When you detach it, it will jump, because the coordinates get screwed up.

BatVink

Login to post a reply

Server time is: 2025-05-31 05:32:35
Your offset time is: 2025-05-31 05:32:35