The first wait need to been long enough for the player to release the C button. How long that is depends on the person and specific situation.
You can instead make a loop to start with which waits until the C button is released.
Alternatively you can use Key Input Processing as Modern explain. It would work excellent for your case.
Since it's VX you first need to implement this script:
http://zeriab.plesk3.freepgs.com/root/scripts/VX/Snippets/button_input_process.txtAfter you have added this all you got to do is to make a script call with this: (Note: The script call must only be ONE line)
button_input_process(4)
The 4 I have placed there means that it will use variable 4. You can change it to whatever variable you want to use. (Remember no leading zeros, i.e. 12 is fine, 0012 is not)
The way it works is that it halts execution until a key is trigger. A number identifying the key is then saved into the specified variable and execution proceeds.
Which number means which key then? From the script header:
Here are what the different numbers mean: (Defaults in ())
2 - down
4 - left
6 - right
8 - up
11 - A (Shift)
12 - B (Esc, Num 0, X)
13 - C (Space, Enter, Z)
14 - X (A)
15 - Y (Y)
16 - Z (Z)
17 - L (L)
18 - R (W)
Note that you have to press a key down for the event to proceed. It won't proceed if you hold a key down when you come to it. Thus removing your problem of immediately going back to the menu.
Also note that you put a one frame wait into the loop somewhere so the Input module can be updated.
Additionally you have some problems with control flow.
Instead of letting the control flow back again you keep calling common events which eventually give you a
Common event call has exceeded maximum limit. error.
You must make sure you don't have a situation where you have common events call common events which in turn calls common events and so on.
I have changed your project so you can get a feeling as to how the input part can be carried out.
I have been lazy and made a script call for setting the right variable for each button press. You can do this by having 8 conditional branches. It's easy and simple, it's just slower.
*hugs*
- Zeriab