I’ve been having trouble finding resources as a new godot user. I have experience in programming already, but this is my 1st dabble outside embedded systems.
A lot of the videos I’ve been watching use outdated functions.
I want to create a 2d top-down wargame as a start, trying to get just basic measuring and drag/drop movement down. I should be able to pick up a unit and move it to another part of the scene, measuring the distance.
To get the distance, you can just keep track of the initial position of the unit and call the Vector2.distance_to function when the unit it placed down, with the new position of the unit.
For the actual drag/drop, the built-in system for drag/drop is only for UI elements and doesn’t have much customization. It might be better to implement your own using Area2D nodes, since those can detect clicks.