Discussions

SmileBASIC Community

ŁσηеsταгDonTheSuperGamer

03/05/2016 9:07 PM ·Spoilers

Open Closed

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.

Advertisement

Comment

This post has no comments.

  • Oops! That was that was the title screen's BGLOAD. My bad! I meant: BGLOAD 0,0,0,32,30,MAP1,0

    Yeahs0
    Played
  • Isn't MAP1 empty when you call BGLOAD?

    Yeahs0
  • No. I load "SC_DKHT_GMA_L0" into MAP1.

    Yeahs0
    Played
  • 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.

    Yeahs0
  • 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.

    Yeahs0
    Played
  • 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.

    Yeahs0
  • Of course! That would make this a lot easier! I just published the project. The Public Key is: X3347KQE

    Yeahs0
    Played
  • I've got your project and I'll try to analyze it.

    Yeahs0
  • 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.

    Yeahs1
  • 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.

    Yeahs0
    Played
  • 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.

    Yeahs0
    Played
  • 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?

    Yeahs0
  • 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.

    Yeahs0
    Played
  • 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.

    Yeahs0
    Played
  • Actually, I don't think it loaded MAP0 correctly at all. It misses every other scan line... Interesting...

    Yeahs0
    Played
  • 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

    Yeahs0
  • 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".

    Yeahs0
  • Really? Can that mean I was saving it to thw wrpng layer this whole time?

    Yeahs0
    Played
  • 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!!

    Yeahs0
    Played
  • I know! I will put your name in the credits of my game! That will show my gratitude!

    Yeahs1
    Played

Add a Comment

You must sign in to post a comment.

Sign in using a Nintendo Network ID to connect to users around the world by writing posts and comments and by giving Yeahs to other people's posts. You can create a Nintendo Network ID using your Wii U console or your system in the Nintendo 3DS family.

Use of Miiverse Details about Miiverse

Report Violation to Miiverse Administrators

You are about to report a post with content which violates the Miiverse Code of Conduct. This report will be sent to Nintendo's Miiverse administrators and not to the creator of the post.

Violation Type:

Post ID: 3DB-NBL7-BXM-ZM9A-C49-NLZB

Report Violation to Miiverse Administrators

You cannot report posts made automatically by a software title.

Edit Post

Select an action: