Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How would I know when to make separate scripts for separate things?

Asked by 8 years ago

The way I code now is just make a difference script for each different thing I want to happen. How could I know when to keep everything together in one script without interfering with other blocks of code? This is just a relative question. Thanks.

0
In a sense I'm asking how would I know what to do to be more efficient TheScriptingAccount 90 — 8y

2 answers

Log in to vote
1
Answered by 8 years ago

When I make a script, the contents are usually all some how involved with the name of the script.

If the script was named CameraScript, the only code would involve getting the camera and manipulating it.

Ad
Log in to vote
1
Answered by 8 years ago

Is the code related somehow? Would it work in that script? Is there a main script? If so is it actually a main part? Just ask yourself simple questions like these!

Answer this question