Skip to content
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

Add customisable guides to 2D view #7569

Closed
JohnGabrielUK opened this issue Aug 27, 2023 · 4 comments
Closed

Add customisable guides to 2D view #7569

JohnGabrielUK opened this issue Aug 27, 2023 · 4 comments

Comments

@JohnGabrielUK
Copy link

Describe the project you are working on

A 2D Metroidvania with a fixed camera that snaps between screen-sized rooms.

Describe the problem or limitation you are having in your project

When creating the game world as a TileMap, there isn't an easy way to see the boundaries between one screen and the next.

Describe the feature / enhancement and how it helps to overcome the problem or limitation

When working on a 2D scene, there would be the option to show guide lines repeating at a given X and Y offset. So, if my rooms are 480x224, I should be able to set the offset as that, and easily see where the boundaries are.

Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams

When in the 2D view, I click "View". A new option called "Configure Guides..." is available. I click on it, and enter my desired width/height. When I click okay, the configured lines are visible in the 2D view.

image

image

If this enhancement will not be used often, can it be worked around with a few lines of script?

Not really. You can make your own references by placing dummy textures or such, but it's an inelegant solution.

Is there a reason why this should be core and not an add-on in the asset library?

Personally, I believe the ratio of code size versus usefulness to a wide range of users warrants this feature being in the core program.

@KoBeWi
Copy link
Member

KoBeWi commented Aug 28, 2023

This can be easily achieved by placing a @tool script in the root node that draws the lines. Sure, you need to add it in every scene, but I think it's pretty normal to have some sort of Map script; I have one in every of my projects.

@aalcutt
Copy link

aalcutt commented Aug 28, 2023

This is a feature of the editor I have always wanted as well. In the past I have resorted to using the grid rulers and dragging them across the map as needed. The @tool idea is a nice suggestion as well and I never thought of that and will likely use that as a work around for the time being. I still think this would be a nice built in enhancement to the 2D view though.

@Calinou
Copy link
Member

Calinou commented Aug 28, 2023

You could also set the grid size to 480×224, but this will make snapping work according to those coordinates.

@JohnGabrielUK
Copy link
Author

As seen above, duncathan has a similar proposal (#7588), which I believe is a better way of solving the same problem.

@JohnGabrielUK JohnGabrielUK closed this as not planned Won't fix, can't repro, duplicate, stale Sep 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants