RPG Maker Forums

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.

Latest Threads

Latest Profile Posts

People3_5 and People3_8 added!

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.

Forum statistics

Threads
105,868
Messages
1,017,090
Members
137,587
Latest member
Usagiis
Top