Hello everyone 👋 !

I have just started with GDExtensions, and I am trying to make the Dodge the Creeps 2D game as a GDExtension. Well I have not gotten that far yet. I made the Player scene, and it seams to work OK. However, it looks like the _process method is being called even before I start the game. And it is giving me a million errors:
The InputMap action "go_right" doesn't exist. Did you mean "ui_right"?
I know the "go_right" action is not missing, because I use it (and it's friends) to move the Player while the game is running.

Could it be that I messed up the initialize_dtcgdx_module call? I am using:

void initialize_dtcgdx_module(ModuleInitializationLevel p_level) {
	if (p_level != MODULE_INITIALIZATION_LEVEL_SCENE) {
		return;
	}

	ClassDB::register_class<PlayerGdx>();
}

Or is there a flag or something I should be checking before quarrying the input for the "go_right" action?

  • All gdextensions (and other c++ code) will run both in and out of the editor, so everything that shouldn't run in the editor should check for

    Engine::get_singleton()->is_editor_hint()

All gdextensions (and other c++ code) will run both in and out of the editor, so everything that shouldn't run in the editor should check for

Engine::get_singleton()->is_editor_hint()