Hi there!

Aah, a thread for everyone who - like me - still works with old, outdated engines (A6.6 here, ladies and gentlemen!).
I sometimes stumble upon issues who may or may not be engine bugs. If I manage to find a workaround, I'll post it here, so others don't have to break their heads over it laugh
[A6&friends aren't updated anymore, right? In other words, this makes sense here instead of Bugs, right?]

I do hope that eventually, others will find this and possibly join me in my cause by adding their own workarounds.

Or maybe this will die a quiet, quick death by this being the only post in this thread ever.

Rotation of scaled panels

Rotation occurs around a wrong point when using panel.angle on a scaled panel.
Maybe I'm misunderstanding something here, but it seems to me that the point the panels are rotated around isn't panel.pos+panel.center*panel.scale (which would make sense), but rather (panel.pos+panel.center)*panel.scale.
This is "easily" corrected by adapting the center-value to use, though it might be annoying. Whatever.
These two lines of code fixed that issue for me:

Code:
panel.center_x = ACTUAL_CENTER_X + panel.pos_x/panel.scale_x - panel.pos_x;
panel.center_y = ACTUAL_CENTER_Y + panel.pos_y/panel.scale_y - panel.pos_y;




Perhaps this post will get me points for originality at least.

Check out Dungeon Deities! It's amazing and will make you happy, successful and almost certainly more attractive! It might be true!