プレイ日記
Party rock PartyRockx
I NEED HELP. how do i make text appear in the middle of the screen.
5そうだね
プレイ済み
返信[1]
親投稿
Hanzo rzsense
You can decide print starting location with LOCATE command. LOCATE X,15:?"TEXT" X depends on length of text string you want to print.
1そうだね
未プレイ
返信[2]
親投稿
Party rock PartyRockx
it did not work
0そうだね
プレイ済み
返信[3]
親投稿
Party rock PartyRockx
see
0そうだね
プレイ済み
返信[4]
親投稿
Luigi64 LuigisFriend
Try entering this exact code and you'll see what we mean: LOCATE 15,15 PRINT"HELLO"
1そうだね
プレイ済み
返信[5]
親投稿
Hanzo rzsense
Range of LOCATE arguments are 0-49 (for X) and 0-29 (for Y) on top screen. LOCATE 0,0 is top left corner of top screen, and LOCATE 49,29 is bottom right corner. And I guess Z coordinate of LOCATE you've set is too low. Try replacing line 141 and 142 of your attached program with the following. LOCATE 13,15,-8 PRINT"YOU COME ACROSS A RIVER"
1そうだね
未プレイ
返信[6]
親投稿
Stewart segludian
Attached is a small function to print centered text on the screen. It takes into account top and bottom screen widths. 400 is pixel width of the top screen. 320 is the width of the bottom screen, and characters are 8 pixels wide. If the text is too long to fit on screen it is left justified. Give it a try and let me know if you find any bugs.
2そうだね
プレイ済み