godotengine / godot-proposals

Godot Improvement Proposals (GIPs)
MIT License
1.16k stars 97 forks source link

Can you add script support in tilemap #7343

Open Lightshousegames opened 1 year ago

Lightshousegames commented 1 year ago

Describe the project you are working on

I am working on a sonic like game and I am adding loops in 2d is there any way you can make tilemaps support script so that automatically when a player enter an area2D the script executes

Describe the problem or limitation you are having in your project

Tilemaps doesn't support scripts

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

It will be more faster and efficient to develop and complete my game

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

Ctrl + shift + A

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

This can be used as a editor plugin but will not be used most of the time

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

This is about improving game development faster

AThousandShips commented 1 year ago

Ctrl + shift + A

What do you mean? This isn't a description of how to make this work

You can already attach scripts to TileMap, you are probably talking about handling physics with it, which is a different thing, are you talking about tile maps using scenes?

Calinou commented 1 year ago

In 4.x, you can create scene tiles (i.e. use instanced scenes as tiles). These can have scripts attached to them.