ScratchData LogoScratchData
Back to kriblo_test's profile

Handle events (like click) with blocker

KRkriblo_test•Created February 27, 2020
Handle events (like click) with blocker
2
1
18 views
View on Scratch

Instructions

This is just an example of how I usually avoid glitches from people clicking sprites like wild animals ;) The idea is to check if a click is already being handled (variable Handling Click = 1) before setting Handling Click to 1 and asynchronously calling a broadcast handler which sets the Handling Click to 0 when done.

Project Details

Project ID371571488
CreatedFebruary 27, 2020
Last ModifiedMarch 25, 2024
SharedFebruary 27, 2020
Visibilityvisible
CommentsAllowed