Good evening! Bit of a noob question here as I’m still just learning.
I have a script, let’s call it ‘gameController.script’ and in the update function I have a function call, let’s’ call it ‘moveBalls()’
My question is, where should I put the function moveBalls() itself? Should it go inside the update function, or alongside the update function in the same script file, or should it go in a separate lua module? I’ve tried all three and they all seem to work, so I’m interested to know what’s the best practice and why.
Many thanks!