We're going to make sprites draggable, and make a simple matching game. Making sprites draggable is also useful in many other projects.
Play this demo in full screen.
2) To make the other sprite draggable, we're going to start off by making it follow the mouse all the time (similar to Squid Chase).
Play this demo in full screen.
4) Make the moving sprite stop following your mouse when you are no longer holding down your mouse button.
Hint: There are multiple ways of accomplishing this. You can try using a new looping construct, or have a variable that keeps track of if you are dragging the sprite.
Play this demo in full screen.