Here is a way to rotate around any point. Set cx,cy to the point you want to rotate around, and set a to the amount to rotate.
var a=1
var cx=100
var cy=100
rotate a degrees
set position to
(self.x-cx)*cos(a)-(self.y-cy)*sin(a)+cx, (self.x-cx)*sin(a)+(self.y-cy)*cos(a)+cy