Weapons Menu pop up

baardbi

Well-known member
I have to be honest. It might be easier if you just explain what you are trying to do. There might be solutions already out on the forums.

I know that you want a weapon select screen to pop up when you press select, but I'm not quite sure how you were thinking of doing that.
 
Well i was loooking at doing a nametable file , and then addeding a curser system. Inventory items menu like metal gear or LOZ
 

baardbi

Well-known member
I see. It's a very cool idea. I haven't worked that much with nametable files, so I'm going to have to do some reading before I can help you further. I'll be very interested if you figure this out. Having a menu screen in the game would be very helpful with the game I'm currently working on.

My final tip for now is being very thorough with using the hash symbol every time you use a constant name #constant.

I'll inform you if I figure this out. Good luck for now.
 
dale_coop said:
Are you sure that your "NT_WeaponScreen" is declared and set somewhere?

if I try:
Code:
LDA #$00
STA temp

DrawBox #$00, #$00, #$20, #$08, #$1E, temp, #$00, #$00, #$00

Code works! But it wont undraw once the input button is selected
 
Still working this code out, and have narrowed it down the drawbox lines as pictured. I turnes the arguments on in 8 but still getting this any ideas
 

Attachments

  • 20200418_100713.jpg
    20200418_100713.jpg
    5.2 MB · Views: 1,916
I see 34 refers to an attributeTable I exportes nametable and attributes.
39 is the box area. That seems like i need to adjust the hight and width?
 

dale_coop

Moderator
Staff member
In the next version that will be out seen, there is a easier box system (for text, items, ...)
You should keep that idea for a new project with that version?

Btw, your errors say that you used unknown labels in your "Select Menu.asm" script, line 6. You should share that script.
 

dale_coop

Moderator
Staff member
Your script is not correct...
if "NT_WeaponsScreen" is a variable, to should be:
Code:
LDA #$00
STA NT_WeaponsScreen

DrawBox: #$00, #$00, #$20, #$08, #$1E, NT_WeaponsScreen,#$01 #$01, #$01

But is "NT_WeaponsScreen" a variable? you created it?
 
Dale I looked at your Selection Menu (http://nesmakers.com/viewtopic.php?f=40&t=2707&hilit=Selection+menu
and is there a way to modify this ?. I am really trying to not rely on Joe and the team right now to finish a Demo.
I am using the NT_WeaponsScreen as the constant.
 
UPDATE! the input works now. BUT it draws about the quarterbof the screen black and stays that way. It wont sraw the nametable any ideas?
 

dale_coop

Moderator
Staff member
Yeah, my selection code could inspire you to be used with text (we use that too, in Artix's project)

if NT_WeaponsScreen is a constant, you can modify it (you can not do "STA #NT_WeaponsScreen").

The code would be just:
Code:
DrawBox: #$00, #$00, #$20, #$08, #$1E, #NT_WeaponsScreen, #$01 #$01, #$01

I can't help you on that, sorry, I would not have enough free time to digg into that code for what you want to achieve here. Still I can fix some issues, when I see them on the forum (like I do here everyday), but would be able to join projects.
 
I appreciate your help Dale and I will give this project to try a little bit later today and I will post up the results of it
 

dale_coop

Moderator
Staff member
Hmmm....
X is horizontally and Y vertically... in pixels.
So you identify your starting position, selection item 0... (try some values, test to see the result and adjust the values to find the correct ones... Then, for other positions (when you press the buttons) you ADD to Y or to X (usually #$10 or a multiple of 8) to get the others positions.
 
Top Bottom