tactile switch () pressed? is an evive block and a boolean block. evive has two tactile switches; this block checks if either of them is pressed. The switch whose state you want to check can be chosen from the drop-down menu on this block. It returns “true” if the switch is pressed and “false” if the switch is not pressed.
Note: This block is available in both Upload mode and Stage mode.
Example
- Rotating the sprite if the tactile switch 1 is pressed.
- The example below checks which one of tactile switches 1 or 2 is pressed and changes the screen color using the fill screen with () color block. If no switch is pressed, the screen remains black.
Was this post helpful?
Let us know if you liked the post. That’s the only way we can improve.