Passwords

Non-platform specific questions.

Passwords

Postby arcreamer » Thu Aug 23, 2007 4:44 am

hey guys im trying to make a password so that u can only get past a door if you enter the password so itryed using a key down even and typed just some word and when i go into my game i dont even have to type the whole word... when i type the first letter the door dissappears... how do i make it so that u have to type the ENTIRE word for the door to open?
arcreamer
 
Posts: 398
Joined: Tue Jul 03, 2007 4:08 pm
Score: 9 Give a positive score

Postby motorollin » Thu Aug 23, 2007 2:22 pm

Add event -> Key Down -> Keys: P A S S W O R D -> Keys must be pressed in order -> Script -> Code to open the door
motorollin
 
Posts: 54
Joined: Sun Aug 12, 2007 8:05 am
Score: 1 Give a positive score

Postby arcreamer » Thu Aug 23, 2007 2:38 pm

so i press PASSWORD then i say in script.. " DestroyActor(door);"

or do i have to make more code?

PS: that little destroy actor i wrote isnt real code i was just giving an example.
arcreamer
 
Posts: 398
Joined: Tue Jul 03, 2007 4:08 pm
Score: 9 Give a positive score

Postby arcreamer » Thu Aug 23, 2007 2:43 pm

yeah i just tryed that with a keydown password and a script saying destroy wall and when i pressed P it destroyed it instead of the whole word..
arcreamer
 
Posts: 398
Joined: Tue Jul 03, 2007 4:08 pm
Score: 9 Give a positive score

Postby arcreamer » Thu Aug 23, 2007 2:44 pm

ooooh nvm i had to change it to all keys pressed in order... Thanks man!
arcreamer
 
Posts: 398
Joined: Tue Jul 03, 2007 4:08 pm
Score: 9 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest