I left object oriented programming behind a very long time ago in my career, and found that generally writing functions was far less prone to problems. I'd still use objects and instances of things but they were always just data and references, not significant amounts of code.
Now that I'm entering back into object oriented programming to an extent by using Godot, I'm finding myself running into architectural headaches. So I wanted to ask a quick question and receive a little bit of input on how you approach the problem. We're talking super super basic here.
My problem stems from the way you need to keep references to things in your class instances. If you have a class instance that represents a character. And then you have a lof of things associated with that character like a movement controller, or a set of actions they can perform. It seems like that movement controller and those actions need a reference to the character, similarly you probably need to be able to look up the movement controller and those actions for a given character.
So they reference each other?
Like you have a reference to the character stored on every action and you have a reference to every action stored on the character? It just seems like tons of stuff that can fall out of sync. But do I have that right? And if so why does Gdscript punish me for circular references?
I feel like I've fallen out of my element.