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

#1 2007-04-18 19:58:08

Registered: 2007-04-01
Posts: 2

help with making when pressing key stop

Is it possible to make the when pressing 1 key do something stop forever so when you press it the next time it doens't work



#2 2007-04-18 20:04:25

Scratch Team at MIT
Registered: 2007-03-05
Posts: 1000+

Re: help with making when pressing key stop

I would use a variable. Set the variable to zero at the beginning. Set it to one if the 1 key is pressed. Then, check if the variable is equal to 1 before executing the stack of blocks you want to stop forever.

There might be other ways but this was the first thing that came to my mind.

Andres Monroy-Hernandez | Scratch Team at the MIT Media Lab
on and  twitter



Board footer