Quick question regarding organization

Is it better practice to have a module for functionality and another one for animations, or to have one module for both?

Ex.
Movement module for functionality, things like sprinting, dashing, crouching

Separate movement module to play animations

…or is it better to have one module for functionality and animations?

1 Like

Have one module that handles the logic and plays the animation related to that, for example the sliding have the logic and the animation inside one function, would make your workspace cleaner, and you wouldn’t have too much to look into if something errored.

2 Likes

I honestly prefer to get separated modules so i can just update my code whatever i want
since everything in one module would be a mess for me specially for big projects this will lead you in trouble

1 Like

Uhh, animations are usually played on client, better idea is to call animation from logic module or smth

Note: Modules should be used to group similar functions, for example creating hitbox for projectiles and melee, or maybe calculating quad and cubic beziers

1 Like

Not related if your module is organized you wouldn’t have any problem fixing bugs/errors.

True but the practice honestly based on the project itself , however i prefer separated modules it’s easier to organize for me it’s good for teamwork as well

1 Like

Both of the methods have cons and pros, for me i would do animations and logic in one module but i think it depends on what you are comfortable with

3 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.