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 / how do you print a varible

Author
Message
AlexI
20
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 23rd Mar 2005 04:52
how do you print a varible
Lost Kid
20
Years of Service
User Offline
Joined: 16th Feb 2005
Location: Usa
Posted: 23rd Mar 2005 05:04
Like This:

That Will Bring Up A Varible To The Screen, The Number 4.
David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 23rd Mar 2005 07:58
You can print to the same line using multiple print statements like so:



The ; after signifies not to move onto the next line.

Thus making snazzy things like



possible.

Get 15 new commands, all the date / time commands left out of DBPro for free!
DOWNLOAD PLUGINS HERE: http://www.davidtattersall.me.uk/ and select "DarkBasic"
AlexI
20
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 23rd Mar 2005 14:58
i do know how to change the fonts and coulrs and ect ,i have had db for ages just never come across printing varibles. cause i never work with 2d or text accept for menus, i only like 3d
AlexI
20
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 23rd Mar 2005 14:58
thanks for the code
AlexI
20
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 23rd Mar 2005 15:03
HMMMMMMMMMMMMM problem again how can you text a varible

e.g text,x pos,ypos, "my text"

this is what i did which failed
Kentaree
22
Years of Service
User Offline
Joined: 5th Oct 2002
Location: Clonmel, Ireland
Posted: 23rd Mar 2005 17:00
You have to turn it into a string using str$()

i.e text 0,0,str$(ealspedtime)

Desktop: AMD Athlon XP2800+,Radeon 9800 128MB, 1GB DDR RAM
Laptop: AMD Athlon 64M 3000+,Mobility Radeon 9700 128MB, 512MB DDR RAM
Los
20
Years of Service
User Offline
Joined: 3rd Jan 2005
Location:
Posted: 23rd Mar 2005 22:06
Also use text just before you do the last sync in your program, past all the 3d commands, cus I've had problems with text not appearing and it depends how fast its sync, if its being sync'd OR where it is being called.

**Officialy has a mental illness.
" Ahh to finish something! My boy, have you ever accomplished anything? "
AlexI
20
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 24th Mar 2005 15:01
no its not 3d just a test timer program

Login to post a reply

Server time is: 2025-05-31 05:28:37
Your offset time is: 2025-05-31 05:28:37