Godot Version 4.7 stable.
Hello there, today I’ve come with a question in the direction that I should take with my coding.
I’m trying to make a 2d shooter, metroidvania style, and I’m looking on how to code the behaviors and define the structure of the game in general. The player in particular is something I’m trying to understand on how to do it.
I want it to have: Shooting from a variety of weapons, jump, crouch, inventory, ragdoll, momentum, dashes, reloading, animations for different states, grabs, sounds for taking damage, and to be able to do most of these things simultaneously.
My question is: How would you code this? with one state machine? multiple? a behavior tree? a long code inside the player script? with composition and components? combining this methods? with add-ons? without?
Anyway, I would love to hear your opinions, as someone without experience I’m eager to know more ways make things that work.