Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: MoonDog on Wed 24/06/2015 18:30:03

Title: Password puzzles
Post by: MoonDog on Wed 24/06/2015 18:30:03
Hey guy

Not sure if I should ask this here or at the advance section but
How would I go about making a password puzzle for my game?
Like you can tap any combination of codes but the safe won't open
Until you have a piece of paper with the password.
Title: Re: Password puzzles
Post by: Cassiebsg on Wed 24/06/2015 19:02:43
You just do a if/else condition.

If "player has piece of paper" and "enters the right code"
    open safe!
Else
    do nothing...

(laugh)(laugh)
Note: (not exact code, but should help you get on the right track. ;) ).
Title: Re: Password puzzles
Post by: selmiak on Wed 24/06/2015 20:22:43
I'd have the correct code open the safe anyways, and not only accept the code once the code was discovered, this makes such puzzles much more rewarding. If you randomly create the code every gameplay I'd generate it at the beginning and still have the correct code open the safe.
If you are going for a use piece of paper with combination on it with safe to open the safe kind of gameplay, boo for you, code a password entry screen and see above ;)