Copy THE BLOCK INSIDE and use it in your projects! No credit required. You really don't have to understand how it works, but magic! it does. (BTW, for the current controls, the ball follows the mouse-pointer. SPACEBAR to apply ghost and S to stop everything (mostly). Just drag the stuff into your backpack and use it!)
NOTE TO MORE EXPERIENCED SCRATCHERS! If the ball touches the mouse, then, well you can see what happens. To fix the unnecessary movement, make another custom block (Let's call it advancedMove) and make it run without screen refresh. Add a number, STEPS, so you can decide how fast the sprite moves, and click Make Block. Now, to define advancedMove, say "Repeat[STEPS]: Point to mouse | Move 1 Step." That should do it!