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()
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#11
RE: void OnStart() void OnEnter()

The global variable thing is an option you can do, you will learn it some day. It's just to do some tricks.
It's for more complicated things.

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
10-14-2012, 06:03 PM
Find
MyRedNeptune Offline
Senior Member

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

(10-14-2012, 05:56 PM)4WalledKid Wrote: Oooh ok ok, and what was the global variable thing? And the item thing too.

The global variable is the variable I meant. What item thing? ^^

^(;,;)^
10-14-2012, 06:04 PM
Find
4WalledKid Offline
Member

Posts: 107
Threads: 23
Joined: Oct 2012
Reputation: 1
#13
RE: void OnStart() void OnEnter()

(10-14-2012, 06:04 PM)MyRedNeptune Wrote:
(10-14-2012, 05:56 PM)4WalledKid Wrote: Oooh ok ok, and what was the global variable thing? And the item thing too.

The global variable is the variable I meant. What item thing? ^^

Something about carrying and item from map to map.

[Image: 4walledkidbanner_zps1514b7f6.png]
10-14-2012, 06:09 PM
Website Find
MyRedNeptune Offline
Senior Member

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

Ah, that wasn't in the script. It was just an example or something. ^^

^(;,;)^
10-14-2012, 06:14 PM
Find
4WalledKid Offline
Member

Posts: 107
Threads: 23
Joined: Oct 2012
Reputation: 1
#15
RE: void OnStart() void OnEnter()

(10-14-2012, 06:14 PM)MyRedNeptune Wrote: Ah, that wasn't in the script. It was just an example or something. ^^

Oo ok then. Thanks very much to all of you for helping me. Smile

[Image: 4walledkidbanner_zps1514b7f6.png]
10-14-2012, 06:17 PM
Website Find
Wapez Offline
Senior Member

Posts: 360
Threads: 37
Joined: Mar 2012
Reputation: 19
#16
RE: void OnStart() void OnEnter()

Just another good explanation:

void OnStart() will only be called THE FIRST TIME YOU ENTER A MAP; when you "start" it.

void OnEnter() will be called EVERY TIME YOU ENTER THE SAME MAP; when you "enter" it.

Founder & Legally Accountable Publisher of Red Line Games.
Environment & Gameplay Designer and Scripter.
http://moddb.com/mods/in-lucys-eyes
10-14-2012, 07:46 PM
Find




Users browsing this thread: 1 Guest(s)