ScratchData LogoScratchData
Back to Psiborg's profile

Moving to Clones

PSPsiborg•Created November 17, 2022
Moving to Clones
39
38
502 views
View on Scratch

Instructions

This project is an example of how to move a sprite to the position of a clone as requested by @OverTheMoonAgain Press <space> to move the position of the X sprite to a randomly chosen clone. Note that as it is random it can choose the same clone consecutively!

Description

I have added comments within the project, so please "See inside" The basic idea is that all the clones have a cloneID which is a number to identify them by. To make this obvious I have given each clone a costume of its number. Each clone stores its X and Y positions in cloneX and cloneY lists. So clone 4's Y position is "item 4 of cloneY". As a comment on general coding style, please note there is just one "Green Flag" script with just one Forever loop. This prevents any initialisation or synchronisation problems ;)

Project Details

Project ID763217634
CreatedNovember 17, 2022
Last ModifiedJune 8, 2023
SharedNovember 17, 2022
Visibilityvisible
CommentsAllowed