Detect when a sprite has been released

I have a student who wants to detect when a sprite in a canvas is dragged and released. There’s a “click” event and a “pointer down” event but no “pointer up” or “touch up” event.

Is there some clever way to determine this? My student is making a jigsaw puzzle game and wants the puzzle pieces to snap to grid when released. I’m helping her with the math for snap-to-grid but failing to find a way to create an event for that.

Turns out there is a block for this:

image

It would be nice if the event name matched the button/image event names (e.g. “touch up”).

2 Likes