I want to build a programming game where the player would drag and drop class/function/loop statements/conditional statements/…etc, to build the program.
can you please suggest which node type is best suited for this?
control nodes? I know they are used for the game GUI/menus, but how responsive are they when used as game sprites (not really sprites but you get the idea) like can I expect them to respond quickly to dynamic changes?
Area2D
Use Control nodes for GUI. The Godot editor is built with them so you can see for yourself their performance.
Control nodes also have drag and drop support out of the box. Here’s a demo:
Are you hoping to drag & drop chunks of text, are you thinking about something like Scratch, or Carnage Heart, or is this something different?
No drag and drop the statements and then enter values for the statements parts, the game interface will show the program in two view one, the building view (showing the statements not written as text but as nodes/nested building blocks/…etc) the second view will have the text view. it will be educational so it wont be a full language, basic statements only.
thanks for the link for the demo
I haven’t tried it, but maybe this?