This is my imaginary creature, AKA R-boto the dancing robot.
creature design
I had a bunch of different sketches, but I ended up choosing a simple design for my creature. If I were to make a different creature, I would probably create something a little more complicated and play around with the design.
the code
At first I put the arms in the same function, but I realized that if I wanted to make them independently rotate I would need to separate left and right. I originally wanted it to look like it was walking across the screen, but since I made the limbs move in all different directions it became more of a dancing creature rather than walking.
I found it difficult trying to get the arms and legs to rotate the right direction. At first I was struggling with the math aspect (I honestly still don’t fully understand it) so the limbs would be rotating off screen and not how I wanted. Although it’s still not perfect, I think I got it to rotate better than before, but there is definitely still room to improve if I come back to this. I think the only limb that rotates how I want is the right leg, since it doesn’t really 360 all over the place when I move the mouse.