TheLogFather greatly improved this project in his remix... http://scratch.mit.edu/projects/40603034/ See inside (script comments) for full details on how this project works. Click anywhere to spawn walking cat clones that march across the screen to the right, always layering correctly according to how far 'away' they are. This system does two main things... 1. Sizes the clones according to their Y value so higher clones look farther away, to match the grassy field background image. 2. Uses a list to sort clones by their Y value and to figure out how many layers to go back when spawning, and whether to adjust their list placement when another clone deletes itself. They all delete themselves when they reach the right side of the screen.
TheLogFather greatly improved this project in his remix... http://scratch.mit.edu/projects/40603034/ Found the grassy field using internet image search. All code by me. The bug: The clones generally seem to layer correctly, but if several of them reach the right side of the screen at the same time, and especially if new clones are being created right then, bad data gets created and layering gets messed up here and there. My proposed solution: To create two global trigger variables to be used whenever a clone is being spawned or deleted. When one of these triggers is set, no other clones will spawn or delete themselves. This will insure data integrity while list items are being moved and written. The whole process happens so fast, it should function seamlessly.