トピック
Łσηеsταг DonTheSuperGamer

The HUD won't display!

Hello. I'm trying to load a background map in my game. It won't display on the screen. I want to load it o the touch screen from (32,0) to (292,240). This is what I did. XSCREEN 2 DISPLAY 1 'LOAD GAME A OR B @GAMEAB DIM MAP1[0] BGSCREEN 0,50,30 BGLOAD 0,9,0,64,33,MAP1 BGSCALE 0,0.5,0.5 If anyone can help, I would appreciate it.
1そうだね
プレイ済み
返信[1]
親投稿
Łσηеsταг DonTheSuperGamer
Oops! That was that was the title screen's BGLOAD. My bad! I meant: BGLOAD 0,0,0,32,30,MAP1,0
0そうだね
プレイ済み
返信[2]
親投稿
Hanzo rzsense
Isn't MAP1 empty when you call BGLOAD?
0そうだね
未プレイ
返信[3]
親投稿
Łσηеsταг DonTheSuperGamer
No. I load "SC_DKHT_GMA_L0" into MAP1.
0そうだね
プレイ済み
返信[4]
親投稿
Hanzo rzsense
You must need to load map data into MAP1 between DIM MAP1[0] and BGLOAD , but there is no part to load map in your description.
0そうだね
未プレイ
返信[5]
親投稿
Łσηеsταг DonTheSuperGamer
Okay. I added it in. It still seems to give me a simple blue screen. The thing is, all of the stuff you are saying actually makes sense. It should be displaying by this point. Jeez. This is harder than when I was given a personal lesson on ATTR.
0そうだね
プレイ済み
返信[6]
親投稿
Hanzo rzsense
Is "SC_DKHT_GMA_L0" in your project really available? If it is possible for you to expose key of your project folder, I'll try to get and analyze it.
0そうだね
未プレイ
返信[7]
親投稿
Łσηеsταг DonTheSuperGamer
Of course! That would make this a lot easier! I just published the project. The Public Key is: X3347KQE
0そうだね
プレイ済み
返信[8]
親投稿
Hanzo rzsense
I've got your project and I'll try to analyze it.
0そうだね
未プレイ
返信[9]
親投稿
Hanzo rzsense
I've found one problem. "SC_DKHT_GMA_L0" is empty. Exactly speaking, it has 65560 bytes but all of them are zero. Please reconfirm.
1そうだね
未プレイ
返信[10]
親投稿
Łσηеsταг DonTheSuperGamer
So, if the file that I'm loading is EMPTY, are you saying I should resave the background again? I don't remember how many times I tried that. Ugh. I don't get computers.
0そうだね
プレイ済み
返信[11]
親投稿
Łσηеsταг DonTheSuperGamer
If it's okay with you, can you please attempt to solve the problem for me? Then, I can see the code and know for the future.
0そうだね
プレイ済み
返信[12]
親投稿
Hanzo rzsense
It is correct that SC_DKHT_GMA_L0 includes no data. In my opinion, there are problems in your background saving process. How did you save background data? I guess that you use independent source for it. If so, could you expose it too?
0そうだね
未プレイ
返信[13]
親投稿
Łσηеsταг DonTheSuperGamer
I drew my map with the built-in Smile tool. I then saved the map as "DKHT_GMA". I then did an SCSAVE and called it "SC_DKHT_GMA_L0". I loaded that in the game as MAP1.
0そうだね
プレイ済み
返信[14]
親投稿
Łσηеsταг DonTheSuperGamer
Woah! Check this out! I disabled the GFILL and changed the array in the BGLOAD to MAP0. It actually loaded the title screen map! So, it has nothing to do with the format or syntax. It has to do with the HUD map itself! So if I have it in the files and I can see it in the editor, why in the world is it not loading in-game? I just don't get it.
0そうだね
プレイ済み
返信[15]
親投稿
Łσηеsταг DonTheSuperGamer
Actually, I don't think it loaded MAP0 correctly at all. It misses every other scan line... Interesting...
0そうだね
プレイ済み
返信[16]
親投稿
Hanzo rzsense
I'm sorry for late reply. Could you try following procedure in order to generate map data correctly? 1,2,5,6,7 and 8 should be execute in direct mode. 1. LOAD"SYS/SBMAP" 2. RUN (built-in Smile tool will start) 3. load "DKHT_GMA" in Smile tool 4. Press SELECT button to quit Smile tool 5. CLEAR 6. DIM A[0] 7. BGSAVE 2,0,0,32,30,A 8. SAVE"DAT:SC_DKHT_GMA_L0",A
0そうだね
未プレイ
返信[17]
親投稿
Hanzo rzsense
Haven't you saved a part of BG layer 0 as "SC_DKHT_GMA_L0"? Actually you've drawn BG layer 2 of "DKHT_GMA".
0そうだね
未プレイ
返信[18]
親投稿
Łσηеsταг DonTheSuperGamer
Really? Can that mean I was saving it to thw wrpng layer this whole time?
0そうだね
プレイ済み
返信[19]
親投稿
Łσηеsταг DonTheSuperGamer
I figured it out!!! The width in BGLOAD is 64 tiles instead of 32! That's the reason for the skipping of scan lines. On top of that, I did draw it in the second layer! So, I just followed your procedure and then went to the Smile tool and SCSAVEd it as "SC_DKHT_GMA_L2." When I loaded it, it appeared on screen! How can I thank you more!? I couldn't have done this without you! Thanks!!
0そうだね
プレイ済み
返信[20]
親投稿
Łσηеsταг DonTheSuperGamer
I know! I will put your name in the credits of my game! That will show my gratitude!
1そうだね
プレイ済み