ScratchData LogoScratchData
Back to TheLogFather's profile

Demo: reliable clicking

THTheLogFather•Created November 17, 2016
Demo: reliable clicking
67
43
1604 views
View on Scratch

Description

After the previous project (drag-n-dropping clones), I just thought I'd make this little demo project to show how to get around one of those little 'foibles' of Scratch that I mentioned there... If you have a "when this sprite clicked" script which has a loop to make things happen on-screen, then you will probably find that two clicks in quick succession will break it. This is because the script gets terminated and restarted on the second click, while it was still in the middle of doing something from the first click. It's not hard to get around with some kind of flag (I've used the direction here) and a broadcast, but it's handy to have the problem demonstrated clearly, along with the workaround... (SEE INSIDE for more comments about it all)

Project Details

Project ID131461567
CreatedNovember 17, 2016
Last ModifiedNovember 17, 2016
SharedNovember 17, 2016
Visibilityvisible
CommentsAllowed