I'm having an issue when messing with sprites angle.
By default, the maker first calculate the ox/oy coordinate and then spin the sprite to the angle set, so this happen:
Let's say i have an icon, centered with ox = 12, oy = 12 (half of the icon size, so it's centered) and angle = 0°
If i change the angle it will spin on it's onw center so it's x/y position don't change.
if i change it's oy + 10 it will move up:
Then, when i change the angle, the issue appears, let's say i changed -90°. the icon will spin and it's x/y will change
In the end i set to change the icon Y (vertical) but he moved horizontaly.
So what i want is a way to change angle and ox/oy, without changing the final x/y. so if i set +10y and 90%, the icon will be angled to 90% 10 pixels above the center.
This question is more about math than scripting itself.