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 / Text Commands

Author
Message
dhballer1
21
Years of Service
User Offline
Joined: 19th Oct 2003
Location: MA
Posted: 9th Nov 2003 20:00
Hello, I just started programming in DarkBasic not too long ago. I'm trying to figure out what the diferrence is between the TEXT command and the CENTER TEXT command. For both of them I have to give the values for x,y. Could anyone help me on this?

Thank you
Phoenix4
21
Years of Service
User Offline
Joined: 5th Oct 2003
Location:
Posted: 9th Nov 2003 20:25 Edited at: 9th Nov 2003 20:26
Both of them will print what you want at the coordinates you give but the diference is that the TEXT command will start at the coordinates and start writing it to the screen from that spot, and CENTER TEXT will print the text and the center of the text will be the coordinates.
Example. If the x coordinate is 100 it would look something like this.

text:
__________________________________The text starts at the coordinates and writes across.

center text:
______________Whatever the text is it is centered on the coordinates.



Hope this helped

position object MyFoot,object postion x(yourAss),object position y(yourAss),object position z(yourAss)
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 9th Nov 2003 20:32
ah ha. I am pretty stupid, i never got that one. LOL, I thought the command was broken

I am such a tool.

-RUST-
dhballer1
21
Years of Service
User Offline
Joined: 19th Oct 2003
Location: MA
Posted: 9th Nov 2003 21:29
Oh, thank you.

Login to post a reply

Server time is: 2024-11-25 16:42:51
Your offset time is: 2024-11-25 16:42:51