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

#1 2007-12-02 14:23:32

acolite246
Scratcher
Registered: 2007-09-19
Posts: 8

Dual Button Presses

I am not sure if this is already a forum topic, but shouldn't scratch support dual button presses?

I am not saying
[blocks]
<if><<<key[ up ]pressed?>  <and><key[ left ]pressed?>  >>
[/blocks]

I mean that if I have an up arrow key script (jump, per say) and a left arrow key script, and I press both at the same time, both scripts should run.

This has been a slightly annoying problem; especially for the adventure games, where I try running and jumping at the same time, but it doesn't work.


-- Not sent from a Blackberry Wireless Handheld--

98% of people who read this signature think it is akin to chain mail. If you're one of the 2% who don't, feel free to copy and paste it into your signature.

Offline

 

#2 2007-12-02 20:04:40

kevin_karplus
Scratcher
Registered: 2007-04-27
Posts: 1000+

Re: Dual Button Presses

It may not be possible for scratch to detect two keys being clicked at once, because not all hardware will report that.  Generally only one of the two keys will cause a key-press event.

Offline

 

#3 2007-12-07 19:37:47

danp357
Scratcher
Registered: 2007-11-11
Posts: 7

Re: Dual Button Presses

It will work, you just need to put the left arrow and up arrow commands in different scripts.


Am I supposed to write something here? I guess I just did....

Offline

 

Board footer