This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2008-12-20 10:14:43

HamsterMan2000
Scratcher
Registered: 2008-12-20
Posts: 62

Secret Codes?

I need help. I want to make a secret code project, where you have to figure out what the code is. BUT I don't want the codes: wait until key ** pressed. If so anyone can just type each key on the keyboard and they will have it. Anny Ideas?


http://i.imgur.com/DB8bLI9.png

Offline

 

#2 2008-12-20 11:27:33

shadow_7283
Scratcher
Registered: 2007-11-07
Posts: 1000+

Re: Secret Codes?

HamsterMan2000 wrote:

I need help. I want to make a secret code project, where you have to figure out what the code is. BUT I don't want the codes: wait until key ** pressed. If so anyone can just type each key on the keyboard and they will have it. Anny Ideas?

Well, if you create a variable for each letter you could say . . .
<when green flag clicked>
<forever>
<if><key[  ]pressed?>
<set{ letter1 }to(1
<end>
<else>
<set{ letter1 }to(0
<end>

Then all you would have to do is say forever if letter1, letter 2, letter3, etc. = 1 than say "You figured out the code!"  Or something like that.

Last edited by shadow_7283 (2008-12-20 11:28:21)

Offline

 

#3 2008-12-22 11:39:51

ferret10
Scratcher
Registered: 2008-04-21
Posts: 58

Re: Secret Codes?

I'm not sure what kind of code you mean.  If you see my projects Double Team or Computer Spy, maybe you could use the scripts.  Computer Spy has a complex password system so I had to use the<wait until> block, maybe you could modify it and use the script.


A must-see animation about the Scratch cat! http://scratch.mit.edu/projects/ferret10/364723 ¡uʍopǝpısdn ǝdʎʇ uɐɔ ı

Offline

 

Board footer