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

Implement copy and paste of multiple tiles in the TileSet editor #4409

Open
ghost opened this issue Apr 16, 2022 · 4 comments
Open

Implement copy and paste of multiple tiles in the TileSet editor #4409

ghost opened this issue Apr 16, 2022 · 4 comments

Comments

@ghost
Copy link

ghost commented Apr 16, 2022

Describe the project you are working on

A 2D Platformer that takes inspiration from turrican. WIth large ammounts of tiles with minor variations.

Describe the problem or limitation you are having in your project

Basically take the following case where you have several tiles only in different colors.
tiles-tech-alpha

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

Have a Copy and Paste mode button in the Tileset editor.

It would allow the user to create tiles for one variation and then copy and paste them to the other variations...

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

New Tileset Editor Button lets call it Copy and Paste

Clicking it deselects the current tile.

Shift+Click+Dragging will allow you to select multiple tiles.

Ctrl+C to copy - tile regions and extra data
Ctrl+P to paste - tile regions and extra data

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

As tilesets are a base type. It would be possible to do it with a script. But you would have to write your own tile editor from scratch... And i doubt anyone would ever want to do such a thing

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

The current tileset editor in 3.4 is awful. It cand use lots of improvements.

@Calinou
Copy link
Member

Calinou commented Apr 16, 2022

Related to #955.

Please check if this is already implemented in the new TileMap editor in 4.0alpha6 🙂

@Calinou Calinou changed the title Multi Copy and Paste in Tileset Editor Implement copy and paste of multiple tiles in the TileSet editor Apr 16, 2022
@ghost
Copy link
Author

ghost commented Apr 16, 2022

It's not. Already discussed it in discord

Related to #955.

Please check if this is already implemented in the new TileMap editor in 4.0alpha6 🙂

@KoBeWi
Copy link
Member

KoBeWi commented Apr 16, 2022

In the new tile editor, you could put each variation as a separate atlas source. Then this could be easily achieved if the editor had an option to duplicate a source; you'd just duplicate it with all data and swap the texture. Would that resolve the proposal?

@yhwhey
Copy link

yhwhey commented Nov 28, 2022

Godot 4 seems to be missing this utility as well. My use case that sorely needs the facility to duplicate all tile properties for a given atlas so these can be easily applied to different tilesets.
i.e. most terrains use the same tileset template to show the correct tile for each bitmask. the colliders and occluders tend to be the same across all tilesets that use the same template.

Having the ability to duplicate this data for new atlases would be extremely useful. Currently the only way is manually manipulate the raw tres file to copy this data across

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

3 participants