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 / query with the text command

Author
Message
bigbrother 2000
20
Years of Service
User Offline
Joined: 15th Oct 2003
Location: UK
Posted: 20th Jan 2004 20:36
hi all,

i have some text in my game, although i want some text to be one color/size, and the rest a different color and smaller size, how can i change the size of some text without it changing the size for all the text in the game or are you unable to specify the size of a text string.

thanks
the_winch
21
Years of Service
User Offline
Joined: 1st Feb 2003
Location: Oxford, UK
Posted: 20th Jan 2004 20:54 Edited at: 20th Jan 2004 20:55
SET TEXT SIZE sets the text size.

If you want to set the colour you need to use the INK command.



The ink command is too slow to use in a loop unless you have the second parameter as 0
ink rgb(255,255,255),0 : `runs fast
ink rgb(255,255,255),rgb(0,0,0) : `runs a lot slower

You can also store the colours in an integer which might be quicker than the rgb command,


Can I scream?
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 21st Jan 2004 02:37
I'm not sure about dbp, but there were problems with dbc and text size. Like you could keep changing the text size in a loop, it wouldn't look right.

"eureka" - Archimedes

Login to post a reply

Server time is: 2024-09-21 18:37:20
Your offset time is: 2024-09-21 18:37:20