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 to create a new line of text

Author
Message
arbiter chewbacca hybrid
16
Years of Service
User Offline
Joined: 30th Nov 2008
Location:
Posted: 16th May 2009 16:48 Edited at: 16th May 2009 18:41
In my text RPG if you make a mistake when writing and press enter and I didn't make an action to fufill when you type in that command you get stuck. I need the program to create a new line of text if this happens. Or else whomever is playing it will have to completely restart the game. I want to correct this.

Here is my current code...


[link]www.kdlproductions.webs.com[link]
BN2 Productions
21
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 16th May 2009 19:01
Kind of confused as to exactly what the question is, but what you COULD do is load all strings into an array, then use a loop that will write the text to the screen 1 array spot at a time. The cool part here is you can jump around.

Also, I would suggest using the TEXT command, it is a little more vesatile. It would require a variable to keep track of what line you are on, but it works better, since you can put text anywhere and you can change the texts font and size, something you can't do with print.

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: 2025-08-08 20:34:24
Your offset time is: 2025-08-08 20:34:24