プレイ日記
G. GioStiv2004
PLEASE MAKE ROOM FOR THE GREAT AND POWERFUL KING NOOB. *trumpets play* How do I load backgrounds and scroll them? *croud cheers* THE GREAT AND POWERFUL KING NOOB HAS SPOKEN!
5そうだね
プレイ済み
返信[1]
親投稿
Jared gameboy742
Here is an example. First I used ACLS to clear everything off the sceen. Next I put XSCREEN 2 to use just the top sceen. Then I used BGSCREEN to make some room for the BG. Then I made an array named BG to store the background in using DIM BG[0]. After that I loaded layer 0 of a backround I made called "HOUSE" into my BG array. (The 0 is so that it won't display a dialog flag when loading.)
1そうだね
プレイ済み
返信[2]
親投稿
Jared gameboy742
Next I displayed the backround with BGLOAD 0,BG. Then I made BGX and BGY to track the coordinates of the background. Inside the loop, I get the direction of the circle pad and put the x position in SX and the y position in SY. If the circle pad is to the right then I move the backround right and if it's to the left I move it left. Then I move the backround on the screen by using BGOFS,
1そうだね
プレイ済み
返信[3]
親投稿
Jared gameboy742
and finally a VSYNC to keep it at 60 fps.
1そうだね
プレイ済み