ScratchData LogoScratchData
Back to NickyNouse's profile

Multi-Threaded Key Detector

NINickyNouse•Created November 29, 2014
Multi-Threaded Key Detector
22
17
415 views
View on Scratch

Instructions

Type!

Description

This uses @Griffpatch's ASCII key detector, with a separate thread (not a clone, an instance of the same script) looking for each keypress. Credit would be nice, but is not required. The idea came from a conversation with @r2dav2 about how key detectors have to constantly cycle through a list of letters to check if they're being pressed. I thought I'd see if I could write one using a thread for each key. Unfortunately, threads are really hard to generate programmatically (see http://scratch.mit.edu/discuss/topic/69092/ ) so the code's a bit... agrivating to look at :P

Project Details

Project ID36751004
CreatedNovember 29, 2014
Last ModifiedNovember 30, 2014
SharedNovember 30, 2014
Visibilityvisible
CommentsAllowed