visuco
Challenge 12 of 16

whenMouseDragged runs on every movement made with the button held down, so once the ball has been grabbed it can follow the pointer for as long as you keep hold of it.

Set the two lines that make it follow.

Your code JavaScript

Set the two lines that make it follow.

0 / 48 frames · 400×400
Target
Yours
Results
0%
Press Run to check your code
Penalties: none this run

Report this challenge