08-17-2013, 12:16 AM
First, a few quick questions.
What is the point to preload particles and sounds?
How are random floats and intigers used?
How are local and global variables used?
What are sticky areas and how are they used?
How do you use the auto save function script?
How do you use checkpoints in case the player dies for respawn?
Now that those are out of the way, I'd like to know what scripts are most often placed into the OnStart, OnEnter and OnLeave functions as well as the OnGameStart.
I have noticed that most of everything I have seen in the OnEnter is preload particles and sounds and loading images and text and on the OnLeave is stop sounds/music and loading images and text. I know that the majority of scripts are placed elsewhere for whatever reason but why? Can't all scripts be placed in either of the 3 On* functions?
Could I get a simple list of what "belongs" where, in the OnStart, OnEnter, OnLeave and OnGameStart?
What is the point to preload particles and sounds?
How are random floats and intigers used?
How are local and global variables used?
What are sticky areas and how are they used?
How do you use the auto save function script?
How do you use checkpoints in case the player dies for respawn?
Now that those are out of the way, I'd like to know what scripts are most often placed into the OnStart, OnEnter and OnLeave functions as well as the OnGameStart.
I have noticed that most of everything I have seen in the OnEnter is preload particles and sounds and loading images and text and on the OnLeave is stop sounds/music and loading images and text. I know that the majority of scripts are placed elsewhere for whatever reason but why? Can't all scripts be placed in either of the 3 On* functions?
Could I get a simple list of what "belongs" where, in the OnStart, OnEnter, OnLeave and OnGameStart?