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
void OnStart() void OnEnter()
MyRedNeptune Offline
Senior Member

Posts: 553
Threads: 3
Joined: May 2012
Reputation: 33
#9
RE: void OnStart() void OnEnter()

(10-14-2012, 02:14 PM)4WalledKid Wrote:
(10-14-2012, 09:31 AM)The chaser Wrote: No, it isn't Wink

Let's say you have a map where you have a door and a key. The key opens the door. If the player leaves and everything was in OnStart(), when the player returns that key will be useless, because it was only usable the first time you went into the map. OnEnter () is more for "bug fixing".
So OnEnter() will call the functions every time the player enters the map until I use some "if" statement?
To explain Andyrockin's script: A variable is just a number that you can change. In the script, each time the "OnEnter" function is called, we increase the variable by 1. Then we check whether or not the variable is equal to 3. If it is, the game moves on to do whatever we specified inside the { } brackets.

^(;,;)^
10-14-2012, 03:12 PM
Find


Messages In This Thread
void OnStart() void OnEnter() - by 4WalledKid - 10-13-2012, 11:48 PM
RE: void OnStart() void OnEnter() - by Adny - 10-13-2012, 11:51 PM
RE: void OnStart() void OnEnter() - by 4WalledKid - 10-14-2012, 12:27 AM
RE: void OnStart() void OnEnter() - by Adny - 10-14-2012, 12:38 AM
RE: void OnStart() void OnEnter() - by 4WalledKid - 10-14-2012, 01:50 AM
RE: void OnStart() void OnEnter() - by The chaser - 10-14-2012, 09:31 AM
RE: void OnStart() void OnEnter() - by 4WalledKid - 10-14-2012, 02:14 PM
RE: void OnStart() void OnEnter() - by MyRedNeptune - 10-14-2012, 03:12 PM
RE: void OnStart() void OnEnter() - by 4WalledKid - 10-14-2012, 05:56 PM
RE: void OnStart() void OnEnter() - by 4WalledKid - 10-14-2012, 06:09 PM
RE: void OnStart() void OnEnter() - by The chaser - 10-14-2012, 02:54 PM
RE: void OnStart() void OnEnter() - by The chaser - 10-14-2012, 06:03 PM
RE: void OnStart() void OnEnter() - by 4WalledKid - 10-14-2012, 06:17 PM
RE: void OnStart() void OnEnter() - by Wapez - 10-14-2012, 07:46 PM



Users browsing this thread: 6 Guest(s)