If you use this and change the costume, keep it near the size of the square. Change the speed if you want (you will have to rescript if you change to go another way)
Go to example https://scratch.mit.edu/projects/1390417426/