Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How do you create a block that says something like, when any of these buttons are pressed, then do this... and the second time do a different thing...
- plup
- Scratcher
15 posts
How do you create a block that says something like, when any of these buttons are pressed, then do this... and the second time do a different thing...
I've tried reading the wiki and just can't seem to figure it out. it says i need a port something(which i CAN"T get) and i can't use any of teh readily available buttons… i think… if there is a way… please tell me! it would be much appreciated.
- turkey3_test
- Scratcher
1000+ posts
How do you create a block that says something like, when any of these buttons are pressed, then do this... and the second time do a different thing...
- plup
- Scratcher
15 posts
How do you create a block that says something like, when any of these buttons are pressed, then do this... and the second time do a different thing...
what i meant was more like ex:
if you press j k or l, then do then switch to costume 2
next time j,k or l pressed, switch to costume 3
if you press j k or l, then do then switch to costume 2
next time j,k or l pressed, switch to costume 3
- MCAnimator3D
- Scratcher
500+ posts
How do you create a block that says something like, when any of these buttons are pressed, then do this... and the second time do a different thing...
when green flag clicked
wait until <<<key [j v] pressed?> or <key [k v] pressed?>> or <key [l v] pressed?>>
wait until <not <<<key [j v] pressed?> or <key [k v] pressed?>> or <key [l v] pressed?>>
switch costume to [2 v]
wait until <<<key [j v] pressed?> or <key [k v] pressed?>> or <key [l v] pressed?>>
wait until <not <<<key [j v] pressed?> or <key [k v] pressed?>> or <key [l v] pressed?>>
switch costume to [3 v]
scratch
- plup
- Scratcher
15 posts
How do you create a block that says something like, when any of these buttons are pressed, then do this... and the second time do a different thing...
Thanks a ton! that's exactly what i was looking for!
- Discussion Forums
- » Help with Scripts
- » How do you create a block that says something like, when any of these buttons are pressed, then do this... and the second time do a different thing...