Demonstration of a simple method (no trig required) to orbit a sprite around another sprite. All costumes have the costume center in the middle of the costume - that's important.
Thanks dapontes for the idea to make the sun draggable. Thanks to s_federici for the suggestion to remove the hide/show blocks (not needed since the custom block doesn't do a screen refresh).