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
The if and if else statements
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#3
RE: The if and if else statements

(04-09-2013, 06:06 PM)T122002 Wrote: Well, for example, say I want the player to pick up a key, then when they leave the room the key was in, a monster spawns.

Technically, you don't need if and else statements for that. Just have an interact callback for the key that adds a collision callback for leaving an area that then activates a monster.

(04-09-2013, 06:06 PM)T122002 Wrote: Or maybe when you do something, like solve a puzzle (I also don't know how to do puzzle scripts), then something will happen.

Depending on the puzzle's complexity you also may not need if and else statements.

You can find some information on if-else statements here: http://wiki.frictionalgames.com/hpl2/amn...statements

Tutorials: From Noob to Pro
04-09-2013, 08:32 PM
Website Find


Messages In This Thread
The if and if else statements - by T122002 - 04-09-2013, 06:06 PM
RE: The if and if else statements - by Your Computer - 04-09-2013, 08:32 PM
RE: The if and if else statements - by T122002 - 04-09-2013, 11:29 PM
RE: The if and if else statements - by T122002 - 04-10-2013, 03:37 PM
RE: The if and if else statements - by T122002 - 04-10-2013, 06:40 PM



Users browsing this thread: 1 Guest(s)