×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

print command

print command

print command

(OP)
im making a game, and ...well, look at this....:

  ______________________________________________
 I                                              I
 I            <---320--->                       I
 I                                     /\       I
 I I WANT   ----------------           2        I
 I TEXT TO :  GAME SCREEN   :          0        I
 I GO HERE :     HERE       :          0        I
 I BUT NOT :                :          \/       I
 I CROSS   :________________:                   I
 I OVER INTO THE GAME SCREEN. IS THERE A WAY    I
 I TO DO THIS?                                  I
 I______________________________________________I

RE: print command

Here is one way this simple program will place
text on the screen, wait about 2 seconds, clear it then get
the second set of text and display it

CLS
Screen 12 ( or whatever )
line1:screentext:sleep 2:cleartext
line2:screentext:sleep 2:cleartext


screentext:
LOCATE 10,10: Print text1$
LOCATE 10,11: Print text2$
LOCATE 10,12: Print text3$
RETURN
cleartext:
LOCATE 10,10: "           " ( or however many MAX spaces )
LOCATE 10,11: "           "
LOCATE 10,12: "           "
RETURN

line1:
text1$ = " This is a Line "
text2$ = "that will appear"
text3$ = "where I want it."
RETURN

'or to make the program look smaller
line2:text1$ = "here is text of ":text2$ = "the second part "
text3$ = "or whatever.... ":RETURN

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close