+1 vote

Hello everyone,

I would like to know if there is a special nodes that could help me create an in-game editor.
More specifically the game I'm creating has a building part in the gameplay, 2D top-down view. I would say imagine creating SimCity in Godot. What would be, if any, the tools to use to make this happen?

Thank you

in Engine by (1,044 points)

1 Answer

+3 votes

There's no special tools for this because it's not really needed. You can likely do this with TileMaps that change when clicked. TileMap already has a helper function to detect which cell a pixel is in (e.g. you can get a cell under the clicked position).

It's just a matter of game logic, the standard Godot nodes can already provide the functionality.

by (801 points)

Thank you very much for your answer.
Just to be sure, the tools we have in the editor, like the polygon editor or the the resizable box, are not available in-game?

Editor plugins are available in editor only, they're not on the exported release binary. But the editor plugins are usually made with the same API as the exposed to games, so you might look at the engine code (especially at tools/editor/plugins) and rewrite it in GDScript (or maybe adapt it to a module).

Thank again, I will check this.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.