The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help Questions on scripts and script placement.
GoreGrinder99 Offline
Member

Posts: 166
Threads: 47
Joined: Feb 2013
Reputation: 1
#1
Questions on scripts and script placement.

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?

-Grind to the Gore-
08-17-2013, 12:16 AM
Find


Messages In This Thread
Questions on scripts and script placement. - by GoreGrinder99 - 08-17-2013, 12:16 AM



Users browsing this thread: 1 Guest(s)