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

#1 2009-01-02 14:55:26

fg123
Scratcher
Registered: 2008-11-13
Posts: 1000+

Freeze

Can you do something like>>
<when green flag clicked>
<forever if><key[ up arrow ]pressed?>
<move( 10 )steps>
<end>

<when green flag clicked><forever if><( <{ score }> <=> 4 )>
freeze for 3 seconds.
<end>

So in that 3 seconds, the up arrow key won't work?


Hai.

Offline

 

#2 2009-01-02 18:05:01

boinoinoi
Scratcher
Registered: 2007-06-05
Posts: 500+

Re: Freeze

One word: variables
A bunch of words: You have a "if < ( freeze ) = ( 1 ) >" thing around the "move ( 10 ) steps" and make the variable 1 when you want to be "frozen" and 0 when you want to move.

(...17,18,19,20,21,22...)
31 words!


http://i30.tinypic.com/335fpxx.jpg
"Boinoinoi is the only person on the forums that I expect to be wearing a monocle all the time behind that screen, so I'm sure being as classy as he is, he knows what he's doing"        http://myfastcounter.com/count.php?c_style=88&amp;id=1284259111http://myfastcounter.com/count.php?c_style=88&amp;id=1286068127

Offline

 

#3 2009-01-02 18:48:48

726961
Scratcher
Registered: 2008-11-26
Posts: 100+

Re: Freeze

boinoinoi wrote:

One word: variables
A bunch of words: You have a "if < ( freeze ) = ( 1 ) >" thing around the "move ( 10 ) steps" and make the variable 1 when you want to be "frozen" and 0 when you want to move.

(...17,18,19,20,21,22...)
31 words!

exactly, variables can do anything!


http://scratch.mit.edu/projects/726961/604658 play it now! or else...

Offline

 

#4 2009-01-04 16:42:18

fg123
Scratcher
Registered: 2008-11-13
Posts: 1000+

Re: Freeze

I will think about that.


Hai.

Offline

 

#5 2009-01-04 17:44:24

fg123
Scratcher
Registered: 2008-11-13
Posts: 1000+

Re: Freeze

I also think variables are awesome.

I get my signature!

Last edited by fg123 (2009-01-04 17:44:51)


Hai.

Offline

 

Board footer