I need help rotating an image sprite

I'm very new to Mit app inventor, I'm trying to get an image sprite to rotate around another moving image sprite that moves when I tilt my screen, if that makes sense. I know how to make an image move when I tilt my screen, but I don't know how to get the other one to rotate around it or even rotate at all. please help

This might help:

or

or, oddly, I was just watching this video about coding spring motion (watch to see the demo in action):

https://youtu.be/JywnkK6Iuws

( you could run this in a webviewer )

Here's how I move a pool cue stick
image
in