One of the few things GML doesn't have over other languages is the ability to write multiple events in one script, which would make it so much easier to write modulable scripts.
Example : I am writing a playerAttack script, which includes the create event, step event, a animation end, an alarm, etc.
If i had dozens of those script, it would be much easier to have all their codes grouped together, and if I wanted to edit that particular feature, i wouldn't have to navigate through multiple place, or in my case generally ending up making a scrPlayerAttackStep, scrPlayerAttackCreate, etc..
I don't know how it would work for the order of execution but I am guessing it is nothing impossible to do.
Thanks!
Example : I am writing a playerAttack script, which includes the create event, step event, a animation end, an alarm, etc.
If i had dozens of those script, it would be much easier to have all their codes grouped together, and if I wanted to edit that particular feature, i wouldn't have to navigate through multiple place, or in my case generally ending up making a scrPlayerAttackStep, scrPlayerAttackCreate, etc..
I don't know how it would work for the order of execution but I am guessing it is nothing impossible to do.
Thanks!