ScratchData LogoScratchData
Back to Octodragon2013's profile

Last key pressed detector

OCOctodragon2013•Created September 27, 2023
Last key pressed detector
2
2
28 views
View on Scratch

Instructions

Does NOT work on mobile. It detects the last key pressed. =========================================== How it works: It detects the keys with a (letter (number) of [keys that are detectable]). Then it has a short script to change the (number) variable without screen refresh (and to reset it when it reaches 72). This is so that the number variable is changing so quick that scratch thinks it is every number between 1 and 72. It also has extra 'if <key [ ] pressed> then' loops to detect space, enter and the arrow keys. Why 72 you may ask? Because that is the length of the detectable characters string.

Project Details

Project ID899612557
CreatedSeptember 27, 2023
Last ModifiedSeptember 29, 2023
SharedSeptember 28, 2023
Visibilityvisible
CommentsAllowed