Ok, I can't get rotation to work right for the life of me. I am trying to rotate an image that is contained inside an image set. The image file is 200x500 pixels. What I want to happen, is for it to spin in place around an axis that is located at the vertical center of the image, and slightly above the bottom of the image, so roughly at the 100x450 point of the image or so. Instead, no matter what I try to do, it ends up spinning around a point several hundred pixels to the side of the image itself, causing it to move a bit like one of those pirate ship carnival rides. Is it a problem of having it inside a contained image? Does that cause the anchor points to not function properly? Here's the base code I'm dealing with:
Code: Select all
transform Arm_Rotation():
subpixel True
# rotate_pad False
ease 1 rotate -360
ease 1 rotate 0
pause 0.1
repeat
image Arm:
contains:
ConditionSwitch(
"Arm_Color == 'silver'", "images/Arm_S.png",
"Arm_Color == 'black'", "images/Arm_B.png",
"Arm_Color == 'gold'", "images/Arm_G.png",
),
# anchor (0.5,0.5)
# pos (200,200)
Image Clockface:
contains:
ConditionSwitch(
"Speed == 0", At("Arm", Arm_Rotation()),
"Speed <= 1", At("Arm",Arm_Rotation()),
"Speed != 0", "images/nothing.png",
),
zoom .55
I've tried it with and without padding, I've tried the anchor at (0.0,0.0) (1.0,1.0), no anchor, setting it to fixed points, all those changes seem to do is move the center point relative to the screen, not relative to the shape of the image file. What am I doing wrong here?