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
How to activate a 'Puzzle completed' script
Linus Ågren Offline
Senior Member

Posts: 309
Threads: 58
Joined: Jan 2011
Reputation: 5
#6
RE: How to activate a 'Puzzle completed' script

Make a new function with the complete script in it. Then place the function inside an if-statement for every book collide areas.

Example:

PHP Code: (Select All)
void BookComplete()
{
    
Blahblah events..
}

void BookCol1(string &in...)
{
    if(
== 1)
{
    
BookComplete();
}


That's how I do it. Wink

Creator of The Dark Treasure.
(This post was last modified: 01-20-2012, 09:37 AM by Linus Ågren.)
01-20-2012, 09:37 AM
Website Find


Messages In This Thread
RE: How to activate a 'Puzzle completed' script - by Linus Ågren - 01-20-2012, 09:37 AM



Users browsing this thread: 1 Guest(s)