ScratchData LogoScratchData
Back to TheLogFather's profile

Nearest clone, no lists

THTheLogFather•Created February 21, 2014
Nearest clone, no lists
126
114
5913 views
View on Scratch

Instructions

Related to http://scratch.mit.edu/discuss/topic/30265/ Shows how to find the nearest clone (and its direction) WITHOUT using any lists. The distance and direction reported are for the red pointer. The most recently dragged pointer becomes the red one.

Description

* update to make variables show 3dp again (now that Scratch has changed to show 6dp by default...) Typically, a list is used to store the X,Y co-ords of all the clones. But this uses a broadcast-and-wait method to get the clones to check their distances (and directions) themselves. See inside for comments...

Project Details

Project ID18248372
CreatedFebruary 21, 2014
Last ModifiedJune 7, 2014
SharedFebruary 21, 2014
Visibilityvisible
CommentsAllowed

Remix Information

Parent ProjectView Parent
Root ProjectView Root