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 a TileMapTexture resource to procedurally generate a texture from a tilemap #11745

Open
Shadowblitz16 opened this issue Feb 11, 2025 · 1 comment
Labels

Comments

@Shadowblitz16
Copy link

Describe the project you are working on

A mario game which I will provide a editor where users can draw there own graphics.

Describe the problem or limitation you are having in your project

I need the ability to use tiles from a tileset in a animated sprite.

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

Basically it would be something akin to old school metatiles, which are a 2d map of tiles.
It would allow us to place, rotate, and flip tiles onto a grid and then use that grid in a sprite2D or a AnimatedSprite2D node, or really anything that uses a texture.

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

It would probably be simular to how tilemap works, but your would be generating a texture from it.

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

It would be used in tile based games that try to emulate old school graphics, and I'm sure you could use a tilemap as a viewport and then get the texture, but that requires a lot of setup just for a single sprite.
This would make working with this wort of thing easier.

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

Tileset and Tilemap are already part of core.
This compliments them.

@Calinou Calinou changed the title TileMapTexture Add a TileMapTexture resource to procedurally generate a texture from a tilemap Feb 11, 2025
@Shadowblitz16
Copy link
Author

Shadowblitz16 commented Feb 12, 2025

@Calinou it's not procedural generation, it's just a map of a bunch of tiles to a texture.
Unless by procedural generation you mean generate the backing texture when it's used?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants