トピック
Austin austinthedude

how do I load a bg

I tried the way you do it in petit computer, but it doesn't work, how do you load a background into a program
0そうだね
プレイ済み
返信[1]
親投稿
OlOOlOOl pi_r_round
From a file into an array, then from the array. Have a look at the code in this screenshot.
0そうだね
プレイ済み
返信[2]
親投稿
Austin austinthedude
Well, what about loading the "map" things, how do you load them on your screen? p.s. sorry, im new to smileBASIC
0そうだね
プレイ済み
返信[3]
親投稿
OlOOlOOl pi_r_round
If you mean maps created with the Smile tool map editor, then in the editor use the SCSAVE button to save the background layers. After that, they can be loaded using the same method as in the code I posted earlier.
0そうだね
プレイ済み
返信[4]
親投稿
Austin austinthedude
ok, so i tried what you said, I didnt write down exactly what was in the screenshot, but I did write something that "works", how do I fix it? heres what was in the script DIM bg[1] LOAD "DAT:SC_16_L2",bg BGLOAD 0,0,0,32,32,bg
0そうだね
プレイ済み
返信[5]
親投稿
OlOOlOOl pi_r_round
Adjust the width parameter in the BGLOAD command. Try 64 or 128. I'm not sure how the map editor saves it. Some code I was working on yesterday required 128. But, code I tried today required 64. o.0
0そうだね
プレイ済み
返信[6]
親投稿
Austin austinthedude
odd, i'll try that, thanks for helping :)
0そうだね
プレイ済み
返信[7]
親投稿
Cris cmart592
You should check out the resources page in smilebasicsource.com
0そうだね
プレイ済み