Nathan Laing
Member
G'day G'day!
I'm trying to rotate an object's sprite around its sprite origin (which I have set to be at the center of the sprite), but after I have first re-positioned it with lengthdir.
The sprite is drawn correctly at the new location with the lengthdir functions, but the point (axis?) of rotation is always the object's X and Y coordinates, which is wrong.
I have thought about first drawing the sprite correctly rotated to a surface, and then drawing that surface to the new position with lengthdir, but before I try that, is there any way to specify a new point of axis?
I'm trying to rotate an object's sprite around its sprite origin (which I have set to be at the center of the sprite), but after I have first re-positioned it with lengthdir.
The sprite is drawn correctly at the new location with the lengthdir functions, but the point (axis?) of rotation is always the object's X and Y coordinates, which is wrong.
I have thought about first drawing the sprite correctly rotated to a surface, and then drawing that surface to the new position with lengthdir, but before I try that, is there any way to specify a new point of axis?
Last edited: