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 / Help a noob out!!

Author
Message
Techathon
13
Years of Service
User Offline
Joined: 26th Apr 2010
Location:
Posted: 27th Apr 2010 01:48
Hello. I am currently making a survival text adventure and I do not know how to clear the screen.

Once again, Help a noob out.
Sinani201
17
Years of Service
User Offline
Joined: 16th Apr 2007
Location: Aperture Science Enrichment Center
Posted: 27th Apr 2010 02:29
To remove all text from the screen, use the CLS command.
BN2 Productions
20
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 27th Apr 2010 03:27
If you just want to clear part of it, you can also use the BOX command to draw over the text, but you probably are looking for CLS.

Great Quote:
"Time...LINE??? Time isn't made out of lines...it is made out of circles. That is why clocks are round!" -Caboose
TDK
Retired Moderator
21
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 27th Apr 2010 19:44 Edited at: 27th Apr 2010 19:46
First of all, welcome to the TGC forums. Secondly, please read this thread:

http://forum.thegamecreators.com/?m=forum_view&t=116024&b=10

Particularly item number 10.

TDK

Techathon
13
Years of Service
User Offline
Joined: 26th Apr 2010
Location:
Posted: 28th Apr 2010 01:02
Sorry about that, TDK...

I have on more question. Can an If... Endif command contain another set of if... Endifs? for example:



Can I do that or will the 1st endif cancel out the main if
Irojo
15
Years of Service
User Offline
Joined: 21st May 2008
Location: Eating toast.
Posted: 29th Apr 2010 05:09
No, you can do that.


Time is money. I just ripped you off.
Sinani201
17
Years of Service
User Offline
Joined: 16th Apr 2007
Location: Aperture Science Enrichment Center
Posted: 29th Apr 2010 06:56
Quote: "No, you can do that."


I assume you mean to say "yes"?

Anyways, yes, it is definitely possible. But nesting it too much (but that would have to be a lot) can make your code look ugly.
BN2 Productions
20
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 29th Apr 2010 19:34
Quote: "I assume you mean to say "yes"?"


I believe the "No" was in response to the last question asked:

Quote: "Can I do that or will the 1st endif cancel out the main if "


Still rather ambiguous though.

Anyway, to make this post somehow remain relevant to the thread, a tip with that is that if you find yourself with too many nested if-thens, that's usually a sign that there is a better way to do it.

Great Quote:
"Time...LINE??? Time isn't made out of lines...it is made out of circles. That is why clocks are round!" -Caboose

Login to post a reply

Server time is: 2024-04-24 03:05:02
Your offset time is: 2024-04-24 03:05:02