TheJoe
Member
Hi everyone,
I think I understand at a high level object-oriented language concepts but GML is really the only language I've spent significant time with. I believe I'm grasping the use for Structs / Constructors, but the examples I've found seem to show them as better ways to build, contain, and templatize objects.
Before I go and build a state machine like I've always done, should I try to do them using Structs now? Like each struct is a state maybe? I'm guessing it might be situational on the project, but I'm wondering if there's best practices or if I'd be saving myself a lot of future grief by learning & implementing Structs in this way.
Any pointers or even a hypothetical example would be much appreciated!
I think I understand at a high level object-oriented language concepts but GML is really the only language I've spent significant time with. I believe I'm grasping the use for Structs / Constructors, but the examples I've found seem to show them as better ways to build, contain, and templatize objects.
Before I go and build a state machine like I've always done, should I try to do them using Structs now? Like each struct is a state maybe? I'm guessing it might be situational on the project, but I'm wondering if there's best practices or if I'd be saving myself a lot of future grief by learning & implementing Structs in this way.
Any pointers or even a hypothetical example would be much appreciated!