プレイ日記
Łσηеsταг DonTheSuperGamer
Well. This is beautiful; a blank screen. It won't load the HUD on the bottom screen. I don't know what to do.
2そうだね
プレイ済み
返信[1]
親投稿
mystman12 mystman12
Post a pic of the code that's supposed to do this and maybe some one can help you!
0そうだね
プレイ済み
返信[2]
親投稿
Łσηеsταг DonTheSuperGamer
Okay! Well, I saved my HUD as a background image. I called it "SC_DKHT_GMA_L0". I gave it an array called MAP1. Here is the code I used to draw it. 'LOAD GAME A OR B MAP @GAMEAB LOAD "DAT:SC:DKHT_GMA_L0",MAP1,0 GFILL 32,0,292,240,RGB(0,191,255) BGSCREEN 0,50,30 BGLOAD 0,0,0,32,30,MAP1 BGSCALE 0,0.5,0.5 By writing this down, a blue box appears like expected, but the HUD didn't appear at all.
0そうだね
プレイ済み
返信[3]
親投稿
mystman12 mystman12
Hmm... I don't think the HUD image needs to be stored as an array. Try using LOAD"GRP0:FILENAME",0 after the GFILL command. If that doesn't work, I'll look into the commands a bit more.
0そうだね
プレイ済み
返信[4]
親投稿
Łσηеsταг DonTheSuperGamer
Hmm... That gave me an Illegal File Format error. I just read about BGLOAD and it says the format is "BGLOAD Layer, [Start point X, Start point Y, Width, Height,] Numerical value array." I think I have to assign it to an array. I just don't know if I'm doing it right. I really appreciate the help though!
0そうだね
プレイ済み
返信[5]
親投稿
mystman12 mystman12
Oh, brother... I was thinking of graphics, not BG tiles! Forget everything I said... I'm not really familiar with these sorts of BG commands, I usually use different methods of loading them. All I can suggest is, try changing the ":" after the "SC" in the file name to a "_" instead. It also might help to put a "%" after each instance of the MAP1 array so that it's a string, but that might...
0そうだね
プレイ済み
返信[6]
親投稿
mystman12 mystman12
not be necessary. Another thing is that I don't think the BG load command needs to be as complicated as you have it. Try changing it to just: BGLOAD 0, MAP1 Of course, it always helps to mess around with your code to see what changes and possibly find where the issue is. For example, you could put a "'" at the beginning of the line with the BGSCALE command to temporarily disable it.
0そうだね
プレイ済み
返信[7]
親投稿
Łσηеsταг DonTheSuperGamer
That is pretty helpful. Thanks! I will try that when I'm making more complicated games. As for your simplified code, I got a Type Mismatch error.
0そうだね
プレイ済み
返信[8]
親投稿
Łσηеsταг DonTheSuperGamer
Hey. I figured it out. It was just a problem in the background saving process.
1そうだね
プレイ済み