ScratchData LogoScratchData
Back to TheLogFather's profile

Demo: drag clone onto clone

THTheLogFather•Created November 16, 2016
Demo: drag clone onto clone
69
44
1269 views
View on Scratch

Description

This is a demo that arose from discussion on this forum topic: https://scratch.mit.edu/discuss/topic/225984/ Detecting when two clones of the same sprite are touching is a pain in Scratch (for reasons, see my posts in above discussion). This uses a trick... don't drag the actual clone that was intended to be dragged. Instead, during the drag, have another sprite that *looks* like the clone to be dragged, and have the clones detect when they are touching THAT sprite. It ended up actually being quite tricky & tedious to do this 'properly', avoiding various potential race conditions from multiple quick clicks, spurious screen refreshes, and other minor glitches. For more (tedious) details about that, see my post here: https://scratch.mit.edu/discuss/post/2296383/ (Also some of the comments inside in the Drag sprite.)

Project Details

Project ID131157377
CreatedNovember 16, 2016
Last ModifiedNovember 17, 2016
SharedNovember 17, 2016
Visibilityvisible
CommentsAllowed