Yes @4ian I guess I can be a little more specific…
What I mean is the ability to align in different ways (both in the X axis or Y axis) groups of objects relative to another object.
Better explained with some examples:
Let’s assume that we have three objects A, B and C, and the origin vector (X and Y coordinates) of each object are always in the top-left corner of the object bound-box.
In all the examples we will align in some way the objects B and C to object A.
So this is just an idea of how it would work: let’s say the first selected item is always the element relative to which we will align the others. So we first select the object A and then the others in any order. Then we click the “Left-align” button and it automatically does this (for a moment I think in drawing it but I’ll explain it with pseudo-code):
[code]objB.x = objtA.x
and
objC.x = objtA.x[/code]
Right-aligning object B and object C to object A:
[code]objB.x = (objtA.x + objA.width) - objB.width
and
objC.x = (objtA.x + objA.width) - objC.width[/code]
Vertical-centering object B and object C to object A:
[code]objB.x = (objtA.x + (objA.width / 2)) - (objB.width / 2)
and
objC.x = (objtA.x + (objA.width / 2)) - (objC.width / 2)[/code]
And the same for the Y axis.
I guess the current position of the rotation pivot forces to do some tweaks to the formulas but you get the idea.
Centrée. J’ai pensé un instant être à tort créatif avec les adjectifs en anglais, mais le terme se révèle être correcte.
The distribution functions just average and equalizes the vertical or horizontal space between each selected object. This can be relative on the sides or the center of each object (for different effects).
You can take as an example the align menu of almost any vector drawing program (Inkscape or Illustrator).
I think those buttons will look extremely sexy in the scene ribbon.
[size=85]And by the way, sorry for the topic change but now I have your attention can you please take a look at this pleeeeeasse:
http://www.forum.compilgames.net/viewtopic.php?f=20&t=5358
I swear it’s driven my crazy.[/size]
[size=200]THANKS![/size] ![:smiley: :smiley:](https://forum.gdevelop.io/images/emoji/apple/smiley.png?v=12)