Engaged Employer
code in console log env for question -- ignore this
Anonymous
forever(function () { if (!isShaken) { // Example: Count the touches if (input.pinIsPressed(TouchPin.P1)) { CapTouchCounter += 1 } if (input.pinIsPressed(TouchPin.P2)) { CapTouchCounter += 2 } if (input.pinIsPressed(TouchPin.P4)) { CapTouchCounter += 4 } if (input.buttonIsPressed(Button.A) && input.buttonIsPressed(Button.B)) { buttonCount = 3 } else if (input.buttonIsPressed(Button.B)) { buttonCount = 2 } else if (input.buttonIsPressed(Button.A)) { buttonCount = 0 } console.log(`CapTouchCounter: ${CapTouchCounter}, buttonCount: ${buttonCount}`) }
Check out your Company Bowl for anonymous work chats.