There could be a block that senses whether you hold down that key or press it
Offline
Offline
that's not wat i mean, i maen a script that can tell if its pressed or if it's held down
Offline
awesomeprojects42 wrote:
no
...Then what do you want? Both blocks do exactly what you described.
Offline
I think he means a block that activates if a key is held down for a certain amount of time, like this:
<key _ is held down for _ seconds>
Offline
If <key [ v] pressed>:
repeat until [count] = 5
wait 1 second
change [count] by 1
if ([count]=5)
broadcast [keypressed]
else
set [count] to 0
broadcast [failure]When Scratch 2.0 is released you can compile this into a single block!
Offline