Hey ihmcs.
You should use the "Go To Front" block under the Looks section for this.
Offline
or /forever go back -99999 spaces
Offline
I made a simple routine for this recently. It has 2 scratch cats that randomly walk around. They compare y values to determine who is closest and then adjust accordingly. One thing though is that this works fine currently for only 2 moving sprites. Add more and it is gonna take some re-thinking...
http://scratch.mit.edu/projects/Locomule/812690
but one of the cats (online at least) appears to be bugged and keeps getting bigger, just noticed that
Last edited by Locomule (2010-01-22 00:48:00)
Offline