Scratchcat seems to move just fine. But it's not really realistic. When you press the left or right arrows he is instantly at full speed (maximum velocity). He doesn't even need to slow down before changing direction and going the opposite way! 1. Have a close look at the left-most block of the code so you understand how it works. 2. Change the way the variables "Scratch x velocity" and "Scratch x positions" work together so that scratch slowly accelerates when you walk. 3. Find a way to make him GRADUALLY slow down if no keys are pressed. 4. Find a way to limit him to a top speed of your choice. Good luck!
This project is intended for students in my maths class. Thanks to Griffpatch for the Scratchcat sprite.