key combination
Author |
Message |
DragonForce4
|
Posted: Sun May 31, 2009 7:49 am Post subject: key combination |
|
|
What is it you are trying to achieve?
A cheat code which requires the user to press certain keys one after another
What is the problem you are having?
I don't know how to do it
Describe what you have tried to solve this problem
I tried a big if statement
Post any relevant code (You may choose to attach the file instead of posting the code if it is too long)
this is what did not work
Please specify what version of Turing you are using
4.1.1<Answer Here> |
|
|
|
|
|
Sponsor Sponsor
|
|
|
TheGuardian001
|
Posted: Sun May 31, 2009 8:39 am Post subject: Re: key combination |
|
|
Try storing the keys that have been pressed in a string and then checking the string against the answer. If they got the next key right, let them continue, if not, erase the string so they can start over. |
|
|
|
|
|
Diablo117
|
Posted: Sun May 31, 2009 10:52 am Post subject: Re: key combination |
|
|
With that IF statement you would have to be clicking all 4 arrow keys as well as b and a for it to activate. I would put the key inputs into an array of string and manipulate the characters entered from there. |
|
|
|
|
|
|
|