I am making an app that has a sprite of a line that rotates. Its supposed to look like the scanning line of a radar screen if you know what that looks like. The Sprite image currently rotates around the midpoint, but t I need the line to rotate around an “endpoint” or the end of the sprite image. Is there anyway to change the center of rotation? I could not find any sources online and my only idea is to make half the line a transparent PNG file so it looks like it rotates from the center line, but that will cause me more problems in the future. Any ideas?
Make a graphic that is twice as long as you need, leave half in transparent color and the other half painted with the color of your line. Then when you rotate it from the center, it will give the illusion that it is rotating form one extreme.
1 Like