Convert GDscript to C++

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Rem

Hi,
I have a GDscript that work.
But I want to put this code in my C++ code and don’t have a Godot Script.
I don’t know how to translate it and where to add it in my project.
Thanks for your help.

What Godot version are you using?

magicalogic | 2022-12-19 11:36

3.2.3 stable

Rem | 2022-12-20 09:02

You might be after gdnative then. Just check the documentation here.
https://docs.godotengine.org/en/stable/tutorials/scripting/gdnative/gdnative_cpp_example.html

magicalogic | 2022-12-21 18:14