Made using the AMAZING GRIFFPATCH SCRATCH EMULATOR. 5 step Instruction: 1. Press the green flag twice, 2. Hold space, 3. Once Mr. Scratch cat says how long thou pressed thy little spacebar do it again (until thou art bored), 4. Speak Shakespare, 5. Go to the original project and make your own project!
Test code: {"objName":"Stage", "children": [{"objName":"project" ,"variables":[ {"name": "VAR" , "value": "0" , "isPersistent":false} ] ,"scripts":[ [ 26 , 21 , [ ["whenGreenFlag" ] , ["broadcast:" , "message1" ] , ["stopScripts" , "this script" ] ]] , [ 24 , 88 , [ ["whenIReceive" , "message1" ] , ["doForever" ,[ ["setVar:to:" , "VAR" , "0" ] , ["doWaitUntil" , ["keyPressed:" , "space" ] ] , ["doUntil" , ["not" , ["keyPressed:" , "space" ] ] ,[ ["changeVar:by:" , "VAR" , "1" ] , ["wait:elapsed:from:" , "1" ] ] ] , ["wait:elapsed:from:" , "1" ] , ["say:" , ["concatenate:with:" , "You pressed space for " , ["concatenate:with:" , ["readVariable" , "VAR" ] , " seconds!" ] ] ] ] ] ]] ] }],"info":{} }