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

#1 2012-09-22 22:11:37

ategegne65
New Scratcher
Registered: 2012-09-22
Posts: 2

I have a problem and I need help

Well, I made a script where a sprite was supposed to hide forever when a key was pressed  only once. When I tested it out, it would hide when the key was pressed but after you let go it would appear again. Then I found out that if you hold down the key, it would hide for however long you held down until you let go and it would appear again!!! Anyway to fix this.

Offline

 

#2 2012-09-22 22:15:59

ategegne65
New Scratcher
Registered: 2012-09-22
Posts: 2

Re: I have a problem and I need help

So can someone please help me.

Offline

 

#3 2012-09-22 22:28:12

destructo-serpent
Scratcher
Registered: 2012-07-25
Posts: 1000+

Re: I have a problem and I need help

the script should be

when [space v] key pressed
hide
do you have something else?
like
when gf clicked
forever
if <key [space v] pressed? >
hide
else
 show

Offline

 

Board footer