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

#1 2010-07-12 20:39:13

Sunrise-Moon
Scratcher
Registered: 2009-06-27
Posts: 1000+

If Key Pressed But Not Up?

Basically, I'm trying to make a game, but I need a sensor to say something like this:

If Any Key Pressed but not Up Arrow

Is there any way to do that without having to program all the keys? Hope this makes sense  tongue


http://i1067.photobucket.com/albums/u427/HulKDzN/RebornBlade.png

Offline

 

#2 2010-07-12 20:54:52

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: If Key Pressed But Not Up?

Sunrise-Moon wrote:

Is there any way to do that without having to program all the keys?

Nope, there is no easy "if all key pressed" block


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#3 2010-07-12 21:50:22

Sunrise-Moon
Scratcher
Registered: 2009-06-27
Posts: 1000+

Re: If Key Pressed But Not Up?

Darn. Oh well, thanks for the response  smile


http://i1067.photobucket.com/albums/u427/HulKDzN/RebornBlade.png

Offline

 

#4 2010-07-12 21:52:04

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: If Key Pressed But Not Up?

I really wish there was something like this, though - same with colour sensing.

Offline

 

#5 2010-07-12 22:23:27

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: If Key Pressed But Not Up?

coolstuff wrote:

I really wish there was something like this, though - same with colour sensing.

How would the color sensing part work?


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i.imgur.com/OZn2RD3.png&link2=http://i.imgur.com/duzaGTB.png&link3=http://i.imgur.com/CrDGvvZ.png&link4=http://i.imgur.com/POEpQyZ.png&link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#6 2010-07-12 22:30:33

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: If Key Pressed But Not Up?

Harakou wrote:

coolstuff wrote:

I really wish there was something like this, though - same with colour sensing.

How would the color sensing part work?

If touching a colour other than...

Offline

 

Board footer