I’m really getting into programming and Scripting and was wondering if this title screen setup was optimal. The setup is completely by me. I just used tutorials to remember parameters and certain words and how to work a few plugins.
“TitleScreenGUIs” contains all the GUI stuff like boards, buttons, imagelabels and the actual ScreenGUIs. Which there are three upon entering the game. The “TitleScreenScriptsValues” folder is self explanatory.
How it works is I have a Local Script in one of the three screen guis which is a loading screen gui.
By the end of it, the title screen is timed in accordance with how long the loading screen lasts. So once it ends the “TitleOpen” script begins automatically. The “Destoryer” script is specifically there to destroy the loading GUI entirely as its only meant to be played upon entering the game. What then happens is some loops happen (1 while true do). Its all broken with the help of the “Breakit” bool. So when you click play the bool becomes false therefore causing more chain reaction magic where in the “TitleClose” script will then begin to make the loading screen disappear. And I timed it perfectly where after some time the “titlescreentwo” triggers which is like a lil gimmick thing. AND “camera” is activated to start tweening the camera around and it also enables the “Anims” script. Which again is timed perfectly to begin a little cutscene sequence after a few second wait.
From there the only script really doing anything is the “Anims” script. Which makes a black screen visible then invisible. Then plays another little cutscene that gives a nice transition into character customization in which the option buttons appear on the static doll.
I don’t have all the assets made but assuming they were made, I’m thinking of another sperate button control script which main priority is looping through assets as you click what you want. And separate Anims2 script for some more animation stuff i want to be done in relation to this button pressing phase.
I’m trying to keep scripts doing one thing or a few things pertaining to specific functions or phases rather than a say my “TitleOpen” script having a say in character customization because that’d be confusing.
As much as I’d like to say “It works so it good” I understand some things that work aren’t usual so to speak or efficient. And i honestly have no clue what I’m doing when it comes to going in the right direction.
So I would like to know if I’m being efficient and if not what’s a better workflow for this? I feel like its good because it’s really linear where one script does one thing and ceases to be useful for now and passes on its usage to the next script in line. One bool kind of activates 3 different scrips but like they don’t happen at the same time and this linear order is still being followed.