godotengine / godot-proposals

Godot Improvement Proposals (GIPs)
MIT License
1.12k stars 69 forks source link

Add key modifier to lock gridmap placement to single axis (straight lines) #6961

Open elvisish opened 1 year ago

elvisish commented 1 year ago

Describe the project you are working on

FPS game.

Describe the problem or limitation you are having in your project

Placing gridmap cells is awkward if long lines need to be drawn as the placement can veer off onto another of the two current available axis for placement.

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

It would be similar to Photoshop or Simcity where you can hold the shift-key to draw lines or roads in a straight line.

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

It would be some code in the gridmap core that would allow for a key to be held and lock the drawing onto a single axis.

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

I honestly don't think so.

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

It would need to be part of gridmap core.

Calinou commented 1 year ago