So upon entering the right combination it would set a boolean to true, allowing the player to enter the next area. I've seen some other ways to do a door key code, with using textfields and a variable "stringToEdit" but it doesn't really suit how my game plays.
Any help would be greatly appreciated.
asked Aug 07 at 12:16 PM
Pass = "3462"
CorrectCount = 0
Succeed = false
Key = Get pressed key
if Key = Pass[CorrectCount] CorrectCount else CorrectCount=0
answered Aug 07 at 02:11 PM