プレイ日記
klonoa hellkolbod
so im trying to have a map and a moveable sprite on screen however there's a error in 0:5 that is the right way to do that right?
0そうだね
プレイ済み
返信[1]
親投稿
Hanzo rzsense
I guess your filename is too long. In my opinion, the length limit of filename is twelve or fourteen.
0そうだね
未プレイ
返信[2]
親投稿
klonoa hellkolbod
i changed it back to its original name (mapice) and it still wont go ive even rearranged the code and it still wont go
0そうだね
プレイ済み
返信[3]
親投稿
Hanzo rzsense
What error have you been given?
0そうだね
未プレイ
返信[4]
親投稿
klonoa hellkolbod
a mismatchthen fixed that then a out of ranged error
0そうだね
プレイ済み
返信[5]
親投稿
Hanzo rzsense
What line have an out of range error occured? I point out a couple of suspicious points in your program as follows. 1) The array name applied in line 5 (LOAD) and line 7 (BGLOAD) are unmatch. 2) You have not defined BG layer #3 as 64*64 map yet.
0そうだね
未プレイ
返信[6]
親投稿
klonoa hellkolbod
how do i go about that then also here's the code
0そうだね
プレイ済み
返信[7]
親投稿
Hanzo rzsense
1) Write "BGSCREEN 3,64,64" in line 2. 2) Replace line 7 with "BGLOAD 3,0,0,64,64,STR_MAPICE0".
0そうだね
未プレイ
返信[8]
親投稿
klonoa hellkolbod
it worked but it didn't load the map but it worked so progress
0そうだね
プレイ済み
返信[9]
親投稿
Hanzo rzsense
You should save map data with "SCSAVE" button instead of "SAVE" button in map editor of smile tool. Four map files (SC_xxx_L0 to SC_xxx_L3) will be yielded, and you write one of them as an argument of LOAD in line 5.
0そうだね
未プレイ
返信[10]
親投稿
klonoa hellkolbod
do i have to write each layer its own code
0そうだね
プレイ済み
返信[11]
親投稿
Hanzo rzsense
Yes. Before you load map data which has been made and saved with smile tool into a BG layer, you have to redefine the size of the layer larger than or equal to 64*64 with "BGSCREEN N,64,64" (N is BG layer number you've chosen), because default size of each BG layer is 25*15.
0そうだね
未プレイ
返信[12]
親投稿
klonoa hellkolbod
like that
0そうだね
プレイ済み
返信[13]
親投稿
Hanzo rzsense
I'm sorry my advice was unclear. You seem to use BG layer #3 only. In this case, you don't need line 1,3,4,7,8 nor 9. And you should write "64,64" instead of "30,20" in line 2.
0そうだね
未プレイ
返信[14]
親投稿
klonoa hellkolbod
actually i need gener layer two so which lines do i need
0そうだね
プレイ済み
返信[15]
親投稿
Hanzo rzsense
Try to replace above line 12 with the following codes. BGSCREEN 0,64,64 DIM STR_GENERIC[0] LOAD "DAT:SC_GENERIC_L2",STR_GENERIC BGLOAD 0,0,0,64,64,STR_GENERIC
0そうだね
未プレイ
返信[16]
親投稿
klonoa hellkolbod
so i went through the old code because i couldn'tget what you said to work and i found a acls right above the sprite animation code so am i doing this correct also now it keeps saying type miss match in 0:6
0そうだね
プレイ済み
返信[17]
親投稿
Hanzo rzsense
Could you download a program with the key NDY5JEWD and store it in your current folder? Please download it asap because I'll keep it on the cloud server temporarily. Try to run and refer to the program.
0そうだね
未プレイ
返信[18]
親投稿
klonoa hellkolbod
got it
0そうだね
プレイ済み
返信[19]
親投稿
klonoa hellkolbod
so how do you code collision also here's the map
0そうだね
プレイ済み
返信[20]
親投稿
Hanzo rzsense
Each BG tile has its own number, and you can get a tile number under the coordinates X, Y with BGGET function. Could you download my program with the key NRY5XEAD and try to run and refer to? The above-mentioned BG tile number under the player sprite appears on top left corner of the screen.
0そうだね
未プレイ
返信[21]
親投稿
klonoa hellkolbod
how do you use bgget
0そうだね
プレイ済み
返信[22]
親投稿
Hanzo rzsense
Could you refer to line 25 of my second program? This is how to apply BGGET. It substitutes BG tile number under player sprite for variable C.
0そうだね
未プレイ
返信[23]
親投稿
klonoa hellkolbod
there is no line 35
0そうだね
プレイ済み
返信[24]
親投稿
Hanzo rzsense
Not line 35 but 25. If you press help(?) button on keyboard, you can see the help document of any command/function.
0そうだね
未プレイ