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.

XP Key Input: Conditional Branch

Okay so I'm setting up my own menu for something in XP and I'm using
a condition branch for each key press. The arrow keys Left, Right, Up, and Down all
work but in the Conditional Branch the only other options are A, B, C, X, Y, Z, L and R

There's no Enter key, and setting the branch to A, B, C, X, Y, Z, L or R does nothing when the
actual key is pressed.

Is there a way I can set it up so when the Enter key is pressed or some other key is pressed
it will do a function like with the arrow keys, do A, B, C, X, Y, Z, L and R relate to some
other key I'm just not getting?

Edit: Okay toying around with it I noticed that the mentioned "A" key is actually "Shift". I wonder
why it's shown wrong on my screen. Does it look different on anyone else's?
 
When you're doing a playtest, you can hit F1 and adjust the keys in one of the tabs in the window that pops up (it also lets you toggle music, SE, and a couple other things). Think of it like you're using an SNES emulator with certain keys set to represent certain controller buttons by default. Might not help you a lot, but hey.
 
Those keys don't represent their respective letters on the keyboard, Those are gamepad controls by default:

A = Z and Shift
B = X, 0, and Escape
C = C, Enter, and Space
X = A
Y = S
Z = D
L = Q
R = W

I believe there is some place in the script you can change this, but I'm not the person to ask about that. ^_^ You can also change the set keys around a bit by pressing F1 in test mode as forementioned.

So, if you want the enter key to work, set the input to 'C'
 

ikos

Member

DiffMaster":1bdrim0i said:
Edit: Okay toying around with it I noticed that the mentioned "A" key is actually "Shift". I wonder
why it's shown wrong on my screen. Does it look different on anyone else's?

It's not showing wrong, it's intentionally showing the Button Name. It's universal, I mean, good luck finding an Enter or Shift button on a game controller. *Awaits photographic proof of such ¬¬*
 
Since this program is indeed a computer program, a lot of people don't realize those are game pad controls. That confused me at first as well until I thought of the possiblity of plugging in a game controller to play, then it made more sense.
 
here's the cheatsheet i always use!

---------------------------------
- 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