Godot Version
4.2.2
Question
I am working on a 2d side scroller souls-like game. Kind of like salt and sanctuary or hollow knight, that kind of game. Anyways, I am running into issues with the architecture of my project as I am adding more complex things (at least complex to me) such as a health bar and stamina bar to keep it simple. The way I have this set up is the player starts at a loading screen
Then is brought to a class selection scene
This connects to a sqlite database I have to pull in the attributes for each class etc etc. Each of these classes is it’s own scene.
Once the user clicks start. based on the class_id of the class button clicked, that scene is instantiated into the “World” scene which contains a camera, the tilemap. the progress bars and a spawn point
I have already run into issues with linking the camera up to the character as I have the camera in the world scene and I link it to the character once instantiated.
Basically my question or TL:DR. I am dynamically instantiating my characters into a scene. Is this the right way to go about this problem or is there a smarter way. Also, as a side question, should I have the same script for movement/attacking for all characters or a separate one for each.
Any videos/links/documentation is greatly appreciated as I am pretty stuck moving forward