4ian / GDevelop

🎮 Open-source, cross-platform 2D/3D/multiplayer game engine designed for everyone.
https://gdevelop.io
Other
7.61k stars 754 forks source link

TopDown properties enforced #4753

Open PascalLadalle opened 1 year ago

PascalLadalle commented 1 year ago

GD5v154

AlexandreSi commented 1 year ago

Hi @PascalLadalle, Thanks for spotting this!

Here is my conclusion:

In general, unless one has already worked a lot on these angle issues for isometric games, these parameters are super hard to understand. I think it needs a playground or at least a wiki article about this. @D8H I see that you made the change regarding the 45° offset. Do you think there's a way to better explain those settings?

D8H commented 1 year ago
  • The custom isometry angle seems limited from 0 to 45, not sure if that's normal.

This is the angle between the diamond edge and the horizontal axis:

  • The field "movement angle offset" adds 45 to the current value when Top-Down viewpoint is chosen. I guess it should set a default value of 45, but again, not sure if that's normal.

Actually, it's the other way: -45° is added for isometry. Isometry rotate the viewpoint from 45°, so the left-right and top-bottom axis are in diagonal. It's rotated to put back the axis horizontally and vertically which is often easier for players.

But maybe it wasn't a good idea to do the 45° rotation in the 1st place. Florian suggested to just scale the Y but I was a bit blinded by another feature that needed it this way (though this feature will never come out).