O
Orion31
Guest
Okay, so I have a character model with a separate head and body sprite. The sprites are the same size but the head sprite is transparent where the body would be and the body is transparent where the head would be. The reason for this is that I want the head to be able to rotate independently of the body (I want the character to occasionally turn his head to make him look natural). I also scale the character up as it gets closer to the bottom of the room to simulate distance to the camera. I have a script setting image x and y scale to 0.8 * (room_height - y) + 0.25 I set the origin of both sprites to where the bottom of the feet are/would be so that as the character is scaled, its feet remain in the same spot. It is very important that the feet remain in the same spot because a) when I place the character in the room, if it does not scale around its feet, I cannot predict where it is going to be (like if I place the character on a road, but then scale for depth, the character will not be on the road) and b) when the character is walking, it looks weird. However, when I rotate the head around the origin (which is set to where the feet are), it does not look like the head is turning, but instead that the head is orbiting around a point.
So my question is: can I rotate a sprite around a point that isn't the origin of the sprite?
So my question is: can I rotate a sprite around a point that isn't the origin of the sprite?