I have an image of a spaceship that's 400x100. I can load it up and offset it and it works fine, spinning the ship from the middle.
I decided to scale the ship down and the offset doesn't seem to work right. I can't seem to figure out how to re-center the offset after scaling it down.
Here's the code...
SCALE SPRITE ship.no, 100 / 2
OFFSET SPRITE ship.spriteno, SPRITE WIDTH(ship.no)/2, SPRITE HEIGHT(ship.no)/2
Without the SCALE SPRITE it works fine, but it spins around the nose of the ship when I scale it.
Sprite width and height report 100x100 before scaling and after scaling 50x50. I'm not sure what Offset is doing.
Thanks for any help.