http://img178.imageshack.us/img178/6812/003firstoz3.png[/img]
Now we need the much needed arrow-key input!
Head on over to the 'menu commands' common event. The first thing we're going to do here is add a branch to check if the 'down key' is being pressed. When it is being pressed, we need to add +1 to that 'menu_curs_position' variable. Now create another branch to check if the 'up' key is being pressed, and make it subtract -1 from the 'menu_curs_position' variable.
I know what you're thinking, "hey, but that's not moving the selection graphic!". You're right. We'll get to that soon, though! Remember, this variable is your work horse, and it is going to do a lot of stuff!
NOW. The way I wanted this particular menu, in this particular project to close was with the right/left buttons. What I did was add two branches, separately checking if the right/left keys were being pressed, and then called the 'menu dispose' common event. I suggest you do the same, unless you want to wing it from here on out!
Next, we need to check if the 'c' (actually the ENTER key) is being pressed. If it is, we'll call the 'menu selection' common event. That way the menu selection can handle it's business!
The next clusterfuck of branches is for the loading of a 'cheat menu'. Oh yes. The first thing I added into my project
was a cheat menu.
This next part, the one with three branches, and loads the 'cheat menu' common event isn't necessary. I won't be explaining it. It's included in the demo, tho. You can skip it.
http://img379.imageshack.us/img379/3824 ... ondxh3.png[/img]
Now, the last part of the 'menu commands' common event! We need to just check if the 'menu_curs_position' variable is too high/low. What this means, is that there are only 6 options, and if the variable goes to 7, we have a problem. So we will add, after the commands, a branch to check if the variable is =7. If it IS, we need to set it to 1. We also need one to check if it's =0. If it is, we'll set it to 6. This adds a 'looping' menu selection effect (pressing up on the top option takes you to the bottom one).
Don't worry if that last part didn't make sense. Just add these. It'll come together in the next step, I promise.
