A sprite rotates with the pixel at the origin being center. To get an even rotation, you would best have sprites with odd width and height. So a sprite that has a size of 5x5px will rotate evenly if it's origin is set at x=2, y=2.Well, the reason for the question is we're arguing over whether our sprites should be authored at an odd resolution or an even resolution so that when they rotate from the center they aren't uneven or "lopsided". If there is a definitive answer to this that would be helpful.
Thank you! That's what I needed to hear! ...er, read!A sprite rotates with the pixel at the origin being center. To get an even rotation, you would best have sprites with odd width and height. So a sprite that has a size of 5x5px will rotate evenly if it's origin is set at x=2, y=2.
So did I suspect correctly?A sprite rotates with the pixel at the origin being center. To get an even rotation, you would best have sprites with odd width and height. So a sprite that has a size of 5x5px will rotate evenly if it's origin is set at x=2, y=2.
Damn, i remember incorrectly, seems you are right, the sprite needs to be even width and height with the origin at centre.So did I suspect correctly?
GM does do weird things and adds 0.5 to your origin coordinate?
I'm sorry, looks I had this the wrong way round! I just tested (in GMS) with a circle sprite with even width and height and the origin set at centre. It is rotating correctly, while a sprite with an uneven width and height with the origin set at centre rotates unevenly. So please re-read my edited post above!Thank you! That's what I needed to hear! ...er, read!
Ah ok. I didnt test it myself but it seemed weird...Damn, i remember incorrectly, seems you are right, the sprite needs to be even width and height with the origin at centre.