-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Mark the start or end point of lines (and polygon) #601
Comments
This would be useful. I would also like to add a related request for a function to reverse the point sequence of a polyline. |
I hope the first point(start point) of polygon is also marked |
Is this feature in the develope plan ? |
@finscn It could be, along with the 240 other issues of course. Unfortunately, I don't have much time for Tiled development anymore. If you want to help out, please consider supporting me financially at https://www.patreon.com/bjorn. Thanks! |
Ok. I've chosen $1 per month (my name is Rocky Wei ). I'm a Chinese poor man (indie developer , no job) now. I will give you more when my game could take money for me. Thanks |
@finscn That's really appreciated! |
Hmm, I've done a quick implementation of this but I'm not comfortable pushing it into Tiled 0.12 at this point, since it affects the boundary offset. I'd like to revisit how objects are rendered and implement this properly after the Tiled 0.12 release. In any case here's how I think this could look, with the dot marking the start point (which should also make clear what the end point is): |
Thank you very much !!!!!! love you & kiss you |
One Suggestion : @bjorn , I think an arrow at end point is better than a circle at start point. |
@finscn Hmm, I think I prefer the dot for the following reasons:
I can see the problem with the ambiguity though... |
So, I went for the "simple" implementation (it still required change 1b82bed to be made first so I could expand the item's bounding rect for repainting without affecting its selection outline). The reasons not go with the arrow are the same as in my previous comment. Hopefully it's a pretty rare case to have a polyline connected like that. |
@bjorn , Could you let this feature apply to Polygon ? Thanks |
No problem, reopening this issue until I got around to it. |
In hindsight, I wonder if it would be better to mark this starting point only in "edit polyline/polygon" mode and not always. There was also a request to display the node indexes for all points, which could also be something for the edit mode. So anyways, possibility for improvement is still there as usual. :-) |
Just an idea: Maybe one could draw a second smaller circle that indicates the direction? Would this be easier than the arrow? |
@ridiculousRPG It would essentially have the same complexity (first issue) but it would probably avoid the visual issues regarding interpretation and noise. Are you asking because you need this or just trying to help? I would personally prefer a somewhat more complete solution that is only used when the Edit Polygons tool is active. |
I just thought maybe it would be easier to draw than the arrow when I was reading the comments. |
@bjorn , I think @ridiculousRPG 's suggestion about polygon is good. |
when I draw a line for doing something , eg. as an enemy's move path.
I want to know which is startpoint , which is end point in editor.
Thanks
The text was updated successfully, but these errors were encountered: