Howdy everyone! I am semi-new to Godot and have a decent level of programming experience but I am still learning. The biggest hurdle I am trying to overcome is the organization and methods to use for creating my projects. Usually I use guess and check, trial and error strategies but this is very time consuming and demoralizing. Also research videos online for code for exactly what I am trying to accomplish seems impossible as everything I stumble upon is helpful but not the exact case scenario, which is what has brought me here.
In short, I am working on a 2D project where two players will draft select a team roster from a selection of characters. The two players will face off with their squads in turned based combat. There will be a planning phase where each character will choose a command until all characters from both teams have selected an action with targets. Then all actions will occur simultaneously. The game will proceed until only one side is remaining.
The portion where I am stuck currently is with the selection of my buttons. I want to be able to select a button, and then have the game ask for a target location/selection.
For example:
I select “move” which emits a signal
I want the game to ask “where to move” so I can plug that value into moving that character
I have tried using await to run a function to do this, but the function runs anyway when I hit the “move” button and emits a signal back, which tells me it would work.
What are the syntax/api calls to use to wait for an input(mouse click)? Or is there something bigger that I need to craft in order to accomplish this?