I'm completely new to programming and have no prior education. My only experience is using VBA to make some macros at work to enhance productivity. I apologize for my lack of expertise.
I'm making a 2d platforming game in which switching between two available characters would be the main mechanic. How would I achieve this? Currently for the two characters I have two KinematicBody nodes, both children of the main game node. These two have distinct names & sprites but are otherwise identical in terms of the children I've given them (collision, raycast, and a basic script for behavior and movement).
The script is the same for both characters, but named differently so they can be independently selected. Currently since I can't choose between the two scripts, they both move the same when Input is entered. How can I set one character to be the "default" at game start, then switch over when Input is received from the keyboard? As the two characters also have other actions they can undertake, would a FSM that includes all available options be a good place to start?
Thank you very much for any assistance.