I want to use the button as a counter. Every time I click the button the counter adds one to the total.
I have tried a few variations but one press adds a random large number to the total. It appeared to be counting the time the button was pressed.
Ideas and help welcome.
Offline
The problem, is speed. The value for button pressed? will be 1 until it is released. Therefore, it will rapidly increase if you hold the button down. One way to deal with the issue is to wait for the button to be up again
forever repeat until <button pressed> change [counter v] by [1] wait until <not<button pressed>> end end
Offline