Hi, I'm pretty new to Godot, trying to make a tactical RPG.
Right now I am making a CharacterSpawner that I can drop in my working scene. They would be the tiles available for the player to place their unit in.
I made a @tool class with a Vector2i position and a bunch of functions to display the tile highlights and everything works find, except that I cannot "click" the spawn point in the editor window. I can only modify the position vector in the inspector to make it move.
What's more surprising is that the _input(event: InputEvent) function doesn't register anything when either
It's fine how it is and I could get by but I'm intrigued by this behaviour
#@tool Can't drag and drop Nodes in my scene
1 messages · Page 1 of 1 (latest)
@regal marsh those are plain nodes, they don't have a transform, so no position in space. there's nothing to click on
the fact that you added a property named 'position' to it doesn't mean the editor will recognize it as such
if you really need them to be clickable then it shouldn't be a big issue to make them node2D instead
Oh yeah my bad! Thanks a lot !