Is it possible to use C++ instead of Python?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Joe0239
:warning: Old Version Published before Godot 3 was released.

Is it possible to use C++ instead of Python when coding?

:bust_in_silhouette: Reply From: Gokudomatic2

Yes, but you have to recompile the project every time. GDScript (which is not Python) is not obligatory.

How, please?

Not_a_Robot | 2016-07-14 13:05

From what I see… Is not possible to use C++ with the easiness GDSCript has in the editor?

Thank you!

Not_a_Robot | 2016-07-15 14:13

Sorry but I fail to see the point in that. The strong points of C++ are its compiled language and strong typing, which are not adequate for scripting. On the other half, GDScript is based on python because Python is a matured scripting language, with all the sugar syntax that are not in C. If you want to write in any case your game in C++, why bother with a slow scripting engine? Write directly the native components, you’ll get the benefit of execution speed.

Gokudomatic2 | 2016-07-15 14:24