Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
If so you'd just need to use a user input box and then set what was typed in as a variable and then use an "if" statement to check and see if the input was what you wanted. Put the code for the jump (so it executes if the proper input is entered) above the else and the code for what happens if its incorrect below the else.
Once you have the input from the player all thats left is to check it, the tutorial on our website goes in to detail about how to get it to check if the player has put anything in the box and you would use the same system to check if the value is true or false, you can check that out here: http://tyranobuilder.com/add-a-text-input-box-new/
Basically you have your value from the input box and you will use a jump to check if that value is equal to what you set the password to be, if its not equal it wont use that jump, you will then set another jump that jumps then back to the label of them failing the password when the value does not match the password.
Edit : Oh Jay already explain it, I didn't see his comments when I type mine
e.g. if i set the input variable as passcode and my passcode should be virus
I've tried jumping to the target location if the condition is TRUE,
A: wordsearch
B: value - virus
Condition: A = B
But it doesnt seem working....
So if it's
A: password
B: value - virus
Condition: A = B
is this correct?
And my whole thing is
Label - get_password
Input Box - assign variable: password
Image Button - target: submit_password
Stop
Label - submit_password
Commit input
Page break
Jump - target: password_ok; jump if A: password; B: value - virus; condition: A=B
Text - Please try again.
Jump - target: get_password
Label - password_ok
Show image
Stop
Is there anything wrong? When I preview it, after I enter the text into the input box, the input box would appear again and would not advance. ><
after being successful I added in a show text component just so that the text displays but other then that what you shared is correct, the only thing that could be stopping it from being correct is if:
-Spelling of variable is incorrect in one of components (this could be the conditional jump or the input box
-password was mistyped, Virus is not the same a virus, so if you made the jump value Virus it wouldnt match.
-Jumps created before labels, this can sometimes cause some trouble, try readding the label and then the jumps
I have made my project public for download so you can compare to see if anything is wrong: https://www.dropbox.com/s/xmt90phxkukz7w2/Password.zip?dl=0