Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Help with Escape key input processing!

Okay, so i'm working on a very simplistic menu in rpgmaker xp, and have already scripted what i want to happen when i press the up, down, and enter keys. The problem i'm having here is with the escape key. I disabled the default menu and i want it so that when i press escape that it will shut down the game. I'm using the new conditional branch feature in xp where it checks if a key is being pressed or held. Heres my few lines on the event editor.

Conditional Branch: Key C pushed
  Comment: c/enter button
  play se: buzzard
end

Conditional Branch Key X pushed
  Comment x/escape button
  play se: buzzard

The top conditional branch (key c/enter) is working fine, but the bottom branch (x/escape) isn't working at all. Any idea why? Am i using the wrong key? I thought x and escape go together.
 
Actually, no. The "X" button corresponds to the "A" key. The "B" button corresponds to "X/Escape". You can change it with F1, but it won't be the same when played on another computer.

For a full list of the keys and buttons corresponding to each other, try looking through the Help file.
 
also, for you, here's a free cheat sheet!

---------------------------------
- 01 - directional - down-left  -
- 02 - directional - down      -
- 03 - directional - down-right -
- 04 - directional - left      -
---------------------------------
- 06 - directional - right      -
- 07 - directional - up-left    -
- 08 - directional - up        -
- 09 - directional - up-right  -
---------------------------------------
-    GNU/FDL © 2006 alexanderpas    -
- http://www.gnu.org/licenses/fdl.txt -
------------------------------------------------------------------------------
- 11 - A - Z, Shift        - Button 1 - Triangle - Cancel button, Menu      -
- 12 - B - X, Esc, Insert  - Button 2 - Circle  - Accept Button, Action key -
- 13 - C - C, Space, Enter - Button 3 - Cross    -                          -
- 14 - X - A              - Button 4 - Square  -                          -
- 15 - Y - S              - Button 5 - L2      -                          -
- 16 - Z - D              - Button 6 - R2      -                          -
- 17 - L - Q, Page Up      - Button 7 - L1      - Next Page                -
- 18 - R - W, Page Down    - Button 8 - R1      - Previous Page            -
------------------------------------------------------------------------------
-    GNU/FDL © 2006 alexanderpas    -
- http://www.gnu.org/licenses/fdl.txt -
-------------------------------------------------------
- Alt+Enter - Full Screen            -              -
- F1        - Config                  -              -
- F2        - Check FPS              - PlayTest Only -
- F9        - Debug Menu              - PlayTest Only -
- F12      - Reset                  -              -
- CTRL      - Walk through everything - PlayTest Only -
-------------------------------------------------------
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top