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

Tileset editor - create square collisions in one click, not three #648

Closed
blurymind opened this issue Mar 29, 2020 · 5 comments
Closed

Tileset editor - create square collisions in one click, not three #648

blurymind opened this issue Mar 29, 2020 · 5 comments

Comments

@blurymind
Copy link

blurymind commented Mar 29, 2020

Describe the project you are working on:
Heartbeast's action rpg tutorial. See his comment on this feature too
https://youtu.be/RPgTlxb7Bno?t=469

Describe the problem or limitation you are having in your project:
The process of creating square collisions for each tile is painfully laborious. I raised an issue about this in the past here, but my request was only half addressed
godotengine/godot#13283

Describe the feature / enhancement and how it helps to overcome the problem or limitation:
Basically right now if you want a tile to be a collision, you are required to go through three steps: select it, select the square button, click. Now try doing this 500 times

Describe how your proposal will work, with code, pseudocode, mockups, and/or diagrams:
I am going to point you to the gif I made from years ago
colusionshapefilltool

See how in the gif, one click is required.You click/select a cell while the tool is active, it gets filled with a square. Also holding a modifier such as ctrl when clicking clears the cell or right clicking.
One thing that might be tricky is in telling the tool not to fill a cell if that cell is already filled .

I guess the hardest part of implementing this would be in coming up with a function that detects if a cell contains a 4 point collision shape already - to prevent it from filling a cell twice if someone double clicks on it.

If this enhancement will not be used often, can it be worked around with a few lines of script?:
No, its an enhancement that is constantly used and needs to be done with the tileset editor directly. It will save hours of laborious boring work

Is there a reason why this should be core and not an add-on in the asset library?:
Because we already have this tool, but it's not doing what its supposed to do in an efficient way. Writing an addon would be like patching a hole instead of fixing it

@Jummit
Copy link

Jummit commented Mar 29, 2020

I'd like a copy-paste feature better, because It would be useful in more cases than just square collisions.

@itsjavi
Copy link

itsjavi commented Jun 14, 2020

Jun-14-2020 03-07-45

Yes, we already have the square collision button. But it's a bit slow because we have to select first the tile, click on the button and click again on the tile.

It would be faster to be able to navigate through the collision tiles and fill them with a hot key like F or delete them with backspace. Copy paste would also be great and intuitive to use.

@Calinou
Copy link
Member

Calinou commented Aug 11, 2021

@groud Is this proposal still relevant with the new TileMap and TileSet editor?

@groud
Copy link
Member

groud commented Aug 12, 2021

@groud Is this proposal still relevant with the new TileMap and TileSet editor?

Not anylire, à similar feature has been implemented and it's really easy to paint squares everywhere now.

@Calinou
Copy link
Member

Calinou commented Aug 12, 2021

Closing per @groud's comment.

@Calinou Calinou closed this as completed Aug 12, 2021
@Calinou Calinou added this to the 4.0 milestone Aug 12, 2021
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