If you use a button with an icon instead of the image itself you won't have that rotation problem as the icon is automatically centred, however you need to resize and reposition the button.
In the button's script :
Code: Select all
on rotateMyIcon pAngle
lock screen
put the long id of image ID (the icon of me) into tIconID
set the angle of tIconID to pAngle
put the loc of me into tCenter
set the height of me to the height of tIconID
set the width of me to the width of tIconID
set the loc of me to tCenter
unlock screen
end rotateMyIcon
As for threshold, I never had any issue with it... What was the bug?
F.