What's the easiest way to assign a specific function to a key press? Example: Press z (at any time) changes character graphic.
I've been experimenting with common events, but I can't get it to work. Anyone?
what's the problem with it?
in common event use a contditional branch = button imput
<>Set Change actor graphic: _________
Thats the first thing I tried...and it doesnt do anything :-[ I have no idea why not.
What the... Mind showing us the page of the event?
Ok, Wtf...I started pressing keys randomely and "D" activated it...why on earth does 'D' = 'Z'???
Because, it's the game settings. You change what button equals what. Your enter button/spacebar is actually "C." I guess this is resolved!
Two more questions, actually ;D
1. How can I access these settings? (I've never seen them)
2. How can I set it up so that press z changes char, z again goes to next char, etc. until a final z returns to main char? I tried using a loop and it froze :-[
1 = F1
ok, got the first one down...now how about #2? Jump to label freezes the game as well...
ok condtional branche with varible
after he presses it once add +1 to a varible
NOW have dontional branch varible = 1
Condtional brnach = button imput
Change actor grapphic.
zomg..it almost works...except that when I have it add + 1 (constant) to the variable, it adds a random number instead. Yes, i am POSITIVE that it's set to + 1 CONSTANT. Why is it doing this? :o
EDIT: accidentally had my char X value as one of the variables Duh. But after changing that, now it doesnt work at all! this just isnt my day :'(
after button imput on the first one put wait 2 frames
ok, this is what i have...anyone know how to make it work?
Shit, nothing is working for me today...couldnt get the image to show so heres the link...
http://img82.imageshack.us/my.php?image=helpploxit9.png
what happens wrong? also put the varible change after the cange graphic and lower 5 frames to 2 or 3
Made those changes, but now pressing z (d actually :)) flashes through character 2 and stops on char 3...
EDIT: however long you hold D, it flashes through the three chars and stops switching when you let go...how can i get it to be one press, one char switch...(and why does how long you hold the key matter???)
ok change it back to 5 move it under (Unless you already did)
no...
change all the conditional branches out of the main one. put each in it's own.
Yeah. Well, make the first conditional branch the "if Z is pressed" and then make the other conditional branches separately in the first conditional (Z press check) branch. Make sense? I think this is how it should be done.
Quote from: Nouman on April 30, 2007, 10:43:24 PM
what's the problem with it?
in common event use a contditional branch = button imput
<>Set Change actor graphic: _________
What Is Button Imput And What Do You Mean
He meant button INput. Basically it does something if you press the specified key. Please dont post in resolved topics unless you have something relevant to add.
You should be able to tell that imput = input by looking at the keyboard or with plain common knowledge. :P And I know that you didn't post when this was resolved so... It's resolved! And he meant that he should use that.
Sidenote: LOLZ! DrHojo made me realize all of Nouman's grammar/spelling mistakes. Work on those, Nouman! XD
EDIT: DANG YOU BEAT ME T_T Also, that was kind of relevant because it had to do with the topic. Kind of. He might have had a problem with that and wanted help on it.
Quote from: mastermoo420 on May 07, 2007, 07:16:59 PM
DANG YOU BEAT ME T_T Also, that was kind of relevant because it had to do with the topic. Kind of. He might have had a problem with that and wanted help on it.
Fair 'nuff...and yes...nouman, work on your spelling! :tpg: (lol)