-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
we need a parameter to change the pivot of the tile #2761
Comments
Actually the default pivot of a tile object is usually its bottom-left corner. It's just that the object selection tool always rotates the selected objects around their collective center, unless you first move the rotation origin (you can drag it around, though it currently resets to the center too often). To change the pivot of the tile objects a new "Tile Object Alignment" tileset property was recently added, which is available in the current snapshots (to be released as Tiled 1.4 in a few weeks). You can set it to center to have the rotation of the object applied around the center of its image. Note that this still will not change the behavior of the object selection tool. It would probably be helpful to add a different rotation handle to make it easier to rotate objects around their pivot. For now you can do this by editing the Rotation property directly in the Properties view. |
To add to this, when you have an image object and go to rotate it with the rotation parameter, it does not rotate the image about the center, it only rotates about the pivot point. Changing the pivot point can only be done on an entire tilesheet, so you cannot just update one tile object. In an instances of squares, the rotation parameter would be beneficial to be able to rotate about the center. The Center X and Center Y change whenever you use rotation on an image object and it would be helpful for them to stay the same. |
@kennex09 There's a long requested feature of per-tile pivot points (see also #871), which I do plan to get around to at some point. Or are you requesting a pivot point per object? |
Yes, a pivot point per object would be ideal. Specifically for rotation. Since not all objects need rotated. |
@kennex09 Hmm, well for objects that don't need to be rotated the pivot point is irrelevant. What use-case do you have to have different pivot points per object, rather than per tile? |
I was use image objects for sprite generation. When one of those objects needs rotated, the pivot point is not by the center so the x and y shows in a different place on Tiled than when it's just run in a program without any additional changes. If that makes sense. |
we need a parameter to change the pivot of the tile,default position is the center of the tile
The text was updated successfully, but these errors were encountered: