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 / simple text help plz

Author
Message
pixg
16
Years of Service
User Offline
Joined: 2nd Dec 2007
Location:
Posted: 2nd Dec 2007 21:18
HI, I\\\\\\\\\\\\\\\'m a complete newcomer to gameprgraming, i have no experence and im not finding the tutorial/help included with darkBASIC pro very usefull at all. i mean im just starting out simple, i want to write some text, position it in the font and color of my desire, not complicated i would have thought, well the examples just give a huge code of floating \\\\\\\\\\\\\\\"commodore64\\\\\\\\\\\\\\\" style text, leaving me with no choice but sift thru it all, deleting parts of the code till i can figure out what does what :s, surely theres a quicker way than that?!

anywho , heres wat ive figured out so far... how to position text where i want it..

******************************************************************
desc$="THIS IS txt AT 20 BY 40"
ONE$="THIS Is AT 100 BY 500"
YELLOW$="BY CHANGING THE TXT AND THE NUMBERS"
HOUSE$="I CAN CHANGE THE POSITION OF THE TXT, TOOK ME HOURS TO FIGURE THAT OUT!!!!"

do
SET TEXT SIZE 0.2

text 20,screen height()-40,desc$
text 100,screen height()-500,ONE$
text 1,screen height()-200,HOUSE$
text 250,screen height()-400,YELLOW$
loop
****************************************************************

if anyone can help me change the colour and font of the text id apriciate it.

pixg
Gil Galvanti
19
Years of Service
User Offline
Joined: 22nd Dec 2004
Location: Texas, United States
Posted: 2nd Dec 2007 22:52
set text font "[font]"
ink rgb( [red], [green], [blue] ), 0

Hit F1 in the editor and go to Commands>Text Commands


jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 20th Dec 2007 19:02
Hey - I like Commodore 64 Text! I was a master at the C-64!

Seriously - you may find that having a lot of text seems to slow down other stuff later on. That's been my finding. I know you're just getting started - but keep that in mind.

Example: Writing a WHOLE Page of Text over a 3d "Scene" might effect how fast the "Scene" "Plays".

BMacZero
18
Years of Service
User Offline
Joined: 30th Dec 2005
Location: E:/ NA / USA
Posted: 22nd Dec 2007 05:30
Come on, Jason, your comment is not even relevant - all pixg is trying to do is figure out how to do text in DB. Seems like a good place to start to me.

Pixg, admittedly, Gil said it all . There are 2 or 3 undocumented text commands, unfortunately the only one I remember right now is:

ReturnString$=Reverse$(string$)

Which is fairly useless, all it does is mirror the letters in the string.

Also, remember in the future to put code in [code ] [ /code] tags, it makes posts look much neater.


"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: 22nd Dec 2007 05:48
@bmaczero - Ok - I don't disagree with you on my post's relevance. I was just attempting to plant a seed... but I agree this wasn't the thread to discuss that stuff - ominous sounding performance stuff.

Reverse comes in handy for some stuff - but I also agree with you that that won't help pixg alot now.

BMacZero
18
Years of Service
User Offline
Joined: 30th Dec 2005
Location: E:/ NA / USA
Posted: 22nd Dec 2007 06:10
@Jason - Ok. That is true, and I supposed that it's a good thing to know as well.

I was inspired to do some help files for undocumented commands a while back, maybe winter break is the time for that...


"Ok, so that wasn't funny. I don' have any good Christmas jokes."

Login to post a reply

Server time is: 2024-11-26 05:47:58
Your offset time is: 2024-11-26 05:47:58