Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

print command

Status
Not open for further replies.

reck

Programmer
Mar 6, 2003
2
US
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
 
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: &quot; &quot; ( or however many MAX spaces )
LOCATE 10,11: &quot; &quot;
LOCATE 10,12: &quot; &quot;
RETURN

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

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

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top