Don't let the snake catch your mouse! ------------------------------------------------------- This is actually a test code for the AI of a boss on a different game I'm making. To show the orbit, just hold space while playing the game!
The code for this is actually pretty simple. All the head is doing is following a sine and cosine spiral (an example of that is shown here: scratch.mit.edu/projects/508945771 ) around a sprite that just inches towards your location! The rest is just a tail that follows.