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 to screen

Author
Message
Code eater
17
Years of Service
User Offline
Joined: 17th Feb 2008
Location: Behind You!
Posted: 18th Feb 2008 21:00
5 minutes ago i could easily print to the screen e.g. print x#
but no suddenly I tell it to and it wont print no matter were i write the command and no matter what i tell it to print (variable or text) is there anything i might have accidentaly done to disable it or anything?
Insert Name Here
18
Years of Service
User Offline
Joined: 20th Mar 2007
Location: Worcester, England
Posted: 18th Feb 2008 21:59
What is the specific error you are getting?

You are remembering your "s, right?

You can write crap in DBPro as well as DBC - it just crashes quicker! -TDK

TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 18th Feb 2008 23:26
A couple of tips:

1. Don't use Print - always use Text X,Y,String$ or Text X,Y,Str$(NumVal) for numeric variables.

2. If you are printing on a 3D screen, put all the Text lines at the end of your main loop - after the Sync.

TDK_Man

TheComet
17
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 19th Feb 2008 08:07
@TDK

why after the sync? I always put them after the code and before the sync and it works fine

Oooooops!!! I accidentally formated drive c.
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 19th Feb 2008 11:31
Quote: "I always put them after the code and before the sync and it works fine"


Even on top of a 3D view? Sync updates the 3D display and wipes off the text.

In 2D I don't think it matters, but if you always do Text after the Sync, it should work in all cases.

We'll have to wait and see when (or if) Code eater gets back to us to tell us if it fixed the problem or not.

TDK_Man

Code eater
17
Years of Service
User Offline
Joined: 17th Feb 2008
Location: Behind You!
Posted: 19th Feb 2008 21:09
thanks for the help guys but i managed to sort it out myself. what i had done was i had set the bitmap to 1 but then not set it back to 0 again when i did that it worked thanx very much guys

codeeater

Login to post a reply

Server time is: 2025-06-04 01:51:44
Your offset time is: 2025-06-04 01:51:44