Can scratch only handle 2 buttons pressed?
When i try
if
'a' and 'b' and 'c' pressed it doesn't work
Offline
I've had this problem as well. I had a game with arrow key movement and space key to activate a function. But if up, left and space were pressed then it didn't work. However it did work for other combinations.
Offline
It doesnt indeed work. You might want to do 3 ifs.
if 'a' is pressed then
if "b" is pressed then
if "c" is pressed then
Offline
when gf clicked if < <key [a v] pressed>> if <<key [b v] pressed>> if <<key [c v] pressed>>That should work.
Offline
ill have to figure out some day how to use scratchblocks
Offline
CAA14 wrote:
when gf clicked if (key [a v] pressed?) if (key [b v] pressed?) if (key [c v] pressed?) end end endThat should work.
Regards,
CAA14
Fixed. There were three mistakes:
1). You forgot a ? at the end of the conditionals, or in other words, the (key [a v] pressed?)'s.
2). You had an extra pair of <>'s around the conditionals.
3). You forgot to put "end" where you wanted the if blocks to end.
Offline
Thanks Erinie.
It just comes with practice and reading the guide, piguillaud.
As you can see, I am not yet good at them.
Regards,
CAA14
Offline