One could program a password feature into a program, but it would be pretty easy to defeat, since the code is accessible and modifiable.
Offline
Hi Drakonan,
Question 1: You can do what Duncan suggested, and you might also try putting a "turn 180 degrees" block in the if statement:
If touching wallSprite
Move -10 steps
turn 180 degrees
Question 2: There used to be a project on the website that did just that. I've asked the user to re-post it here:
http://scratch.mit.edu/projects/xyxzergames/2867
In the meantime, you can try having a variable that gets incremented each time a letter is pressed. Then, once all the letters of the password have been pressed, you can continue with the project.
Hope that helps!
-Tammy
Offline
Hi there, I am the person who made the script mentioned above! It is now online again at:
http://scratch.mit.edu/projects/xyxzergames/9676
Enjoy!
Last edited by xyxzergames (2007-06-02 22:19:31)
Offline