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 / Need help with a coommand

Author
Message
1337 programm3r
17
Years of Service
User Offline
Joined: 19th Nov 2007
Location: Your MOM
Posted: 9th Mar 2008 01:26
Is there a command that checks if there is any text on the screen?

Super Cool
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Link102
20
Years of Service
User Offline
Joined: 1st Dec 2004
Location: On your head, weeeeee!
Posted: 9th Mar 2008 17:07
you'll need to set a variable when you use the text or print command. than you can read from that varialble to check if there is any text on screen or even how many lines

Libervurto
18
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 14th Mar 2008 00:26
When you write text to screen it is drawn onto the screen bitmap (bitmap 0).
Using string variables (or arrays) is a good way of keeping track of your text; You can get data like the length or height of the string which helps for positioning.

Login to post a reply

Server time is: 2025-06-04 03:20:17
Your offset time is: 2025-06-04 03:20:17