I have posted a streamlined version of a project (http://scratch.mit.edu/projects/s_federici/1359355) that I initially developped for Jen's BYOB and then I ported to Scratch. The BYOB's version (you can download it at http://www.sitibs.com/branches/moodle/mod/forum/discuss.php?d=1581) works fine, but in the Scratch port there is a glitch that keeps showing up and that I'm unable to remove.
The expected final result of the project is that the two "magnets" will swap and the "left magnet" (the dark one) will ends at position -75 (the value shown by "left magnet final position" variable). Instead (when you download it) this works only once in a while: the "left magnet" stops its glide movement before it gets to position -75.
What I noticed is that, if I detach the last block of the script starting with the hat "swap balls" of sprite "sorter" (the "broadcast put left ball back and wait" block), the final position of the "left magnet" is always correct: -75, as expected.
Last edited by s_federici (2010-10-17 16:57:01)
Offline
I solved the problem. The full project is now available at http://scratch.mit.edu/projects/s_federici/1364343.
Offline