Hello. My sprite object is a simple rectangle.
I managed to move it to a grid.
However, when rotating, it will rotate to the center and will be positionned in the middle of the grid.
I did find a way, (in java) rotating by the corner, but if my sprite is 1*5 squares, rotating is a bit ugly.
So, my solution : Create a SQUARE sprite, with the picture occupying half of the square. the rest is transparent.
Rotating will always be nice, by the center, but the picture of the sprite will snap to grid.
Problem will be the shadow…will try to use animation instead, when I understand how if works, ha!
Same problem with 1x3…