0 votes

so, I am switching over from unreal engine, (the 2D editor sucks!) and moving my project to Godot. I love using C++, it's the programming language that I am most comfortable with, and I heard that you can use c++ to develop the entire game under godot, but I was wondering if gdnative let's you script in c++ like in ue4?

Godot version 3
in Engine by (15 points)

For game logic, it's recommended to use GDScript over GDNative since it has much better usability – on top of not having any compile times to deal with. Performance is more often than not good enough, and GDScript offers optional static typing :)

alright. thanks! I might try to get used to gdscript. I am just way more familiar with C++, and the way it handles things.

I couldn't help but notice that gdscript is kinda like python. am I correct?

For game logic, it's recommended to use GDScript over GDNative since it has much better usability

Depends on particular game structure actually.

For instance, I came to Godot from another (rendering) engine and most of my logic (AI, game entities, relations) were already written in C++, so there's no point for me to reimplement this in GDScript.

But yes, as introductory step I'd also recommend (at least to be familiar with) GDScript.
Although my projects are mostly C++, I use GDScript too, for prototyping, configs, debug.

C++ is more capable as a language, but it requires additional setup (sometimes not very obvious for newcomer) where GDScript is ready to use from the start.

1 Answer

+1 vote
Best answer

"Gdnative script" is a shared library (dll/so) compiled from native code languge like C/C++/others... that can be used instead/with GDScript.

Don't know if this counts as "scripting like in ue4" :-)

by (1,594 points)
selected by

That counts. thanks! appreciate the help!

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.