The RPG Maker Resource Kit

Other Game Creation => Program Troubleshooting => Topic started by: muplah on December 30, 2007, 05:24:00 PM

Title: [RESOLVED] button input?
Post by: muplah on December 30, 2007, 05:24:00 PM
Im sorry for posting another topic so soon after my first one but I have searched for buttton input and found a few things but nothing that helped me.  I think I am suposed to have a conditional branch over it so when I do that and press B for that is what I set the button pressed in conditional branch nothing happends when it should teleport you to another map. I am using RMXP
Title: Re: button input?
Post by: Brady on December 31, 2007, 02:07:38 AM
I idn't actually get what you meant there.  I've never heard of key input being used with conditional branches.

As far as i know, you're meant to set a combination of buttons and a result (for example, pressing enter makes you start jump, move forward, end jump.  Or pressing up, down, up, down makes you gain 99 levels.....) 

How it actually works tough, as i said on the other thread, i'm not sure how you actually et it all up, but i'm fairly certain that that's how it rolls....
Title: Re: button input?
Post by: HolyQuebec on December 31, 2007, 05:33:12 AM
all right listen up.
make a variable called[X]

make your key input code. you'll see there's different keys AND there's numbers beside them. this is the value of the key. lets say the value of shift is 6. what's you,re gonna do is:

Key Input
cond.branch. if [X] = 6 then
your code.

if you wanna have 2 like a combinaison, guess you gotta put two then =P
I never tried that myself. guess I should soon.
Title: Re: button input?
Post by: &&&&&&&&&&&&& on December 31, 2007, 07:34:32 AM
Put it like this.

(https://rmrk.net/proxy.php?request=http%3A%2F%2Fi109.photobucket.com%2Falbums%2Fn52%2Fdreamslayer7%2Fhelpu-1.jpg&hash=e8ced13e892f639b1122473a3666fbb7fd65d086)

If you have it set up like this, but it still doesn't work. It's because (b) doesn't = b one the keyboard.

(https://rmrk.net/proxy.php?request=http%3A%2F%2Fi109.photobucket.com%2Falbums%2Fn52%2Fdreamslayer7%2Fhelpu2.jpg&hash=8eb5d94adbda6e6fba88cb29993deb38d7cf1249)

(b) = X on the keyboard.
Title: Re: button input?
Post by: muplah on December 31, 2007, 03:24:30 PM
It worked!!! Thank you soo much guys!!!
Title: Re: button input?(resolved)
Post by: HolyQuebec on December 31, 2007, 07:07:15 PM
np dood.