defineinserttextatindexoflist//runwithoutscreenrefreshdeleteallofhandlerthis is a list used for adding to the other listsetito0repeatlengthoflistchangeiby1additemioflisttohandlermakes a copydeletealloflistsetito0repeatlengthofhandlerifi=indexthenaddtexttolistadditemiofhandlertolist
whenIstartasaclonesetidtototalclonesaddtoclonesXforeverifkeyleft arrowpressed?thenchangexby-2.5ifkeyright arrowpressed?thenchangexby2.5replaceitemidofclonesXwithxposition
whenclicked
whenIreceiveScratch-StartClicked. . .
Note: Only works offline in Scratch 1.x
whentimer>-1 This is a block that can not be stoppedifmousey=180andmousedown?orclicked=0thensetclickedto1. . .
whenspacekeypressed
whentimer>-1 This is a block that can not be stopped, therefore you can make a workaround that does not require the green flag to be clickedforeverwaituntilkeyspacepressed?. . .
whenthisspriteclicked
whentimer>-1 This is a block that can not be stopped, therefore you can make a workaround that does not require the green flag to be clickedforeverwaituntiltouchingmouse-pointer?andmousedown?This is not an exact workaround because you could, first, while not touching the Sprite, hold down your mouse, then, still holding down your mouse, move it over to the sprite. This will not activate the true block but will activate this.. . .
or
whentimer>-1 This is a block that can not be stopped, therefore you can make a workaround that does not require the green flag to be clickedforeverifmousedownandnottouchingmouse pointerthensetdown?to1waituntilnotmousedownsetdown?to0whentimer>-1 This is a block that can not be stopped, therefore you can make a workaround that does not require the green flag to be clickedforeveriftouchingmouse pointerandmousedownanddown=0then. . .
whenloudness>10
whenclicked You can not use the greater than block to work around the green flag, because the greater than block is the block you want to work aroundforeverwaituntilloudness>10. . .
broadcastmessage
whenclickedsetbroadcasted?to0. . .setbroadcasted?to1whenclickedforeverwaituntilbroadcasted?=1. . .setbroadcasted?to0
broadcastbroadcastandwaitwhenIreceivebroadcast. . . whatever comes after the broadcast, in addition to the receive block you would have
broadcastmessageandwait
whenclickedsetbroadcasted?to0setwaitto0. . .setbroadcasted?to1setwaitto1waituntilwait=0. . .whenclickedforeverwaituntilbroadcasted?=1. . .setbroadcasted?to0setwaitto0
setwaitto3 however many receive blocks you have for that particular broadcastbroadcastbroadcastwhenIreceivebroadcast. . .changewaitby-1 be sure to but this right before any "stop script" blocks, too!
whenbackdropswitchestobackground
whentimer>-1 This is a block that can not be stopped, therefore you can make a workaround that does not require the green flag to be clickedifbackdrop nameofStage=then. . . There goes the backdrop name
whenStageclicked
whentimer>-1 This is a block that can not be stopped, therefore you can make a workaround that does not require the green flag to be clickedifmousex>-180andmousex<180andmousey>-180andmousey<180andmousedown?then. . .waituntilnotmousedown?else. . .