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


Thread Rating:
  • 2 Vote(s) - 2.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
3buttons then a bookshelf opens
Nye Offline
Senior Member

Posts: 250
Threads: 8
Joined: Jan 2011
Reputation: 2
#3
RE: 3buttons then a bookshelf opens

(06-13-2011, 07:50 PM)xtron Wrote: bump...

"the message is too short"...nope.

Set the interact callbacks for each of the levers. Set the 'DestroyOnInteraction' to true for each; and link them all to the same procedure.

Here, you will need to either use a case-switch structure or just a bunch of if statements, and local variables. For example:

if (getlocalvarint("BookShelf") == 1)
{
   setlocalvarint("BookShelf, 2);
  break;
}

if (getlocalvarint("BookShelf") == 2)
{
    setlocalvarint("BookShelf, 2);
    break;
}

if (getlocalvarint("BookShelf") == 3)
{
    // INSERT STUFF FOR OPENING BOOKSHELF
   break;
}

Note, for the above to work, the local variable, "BookShelf", will previously need setting to 1, so in your void onStart() { // you need to include the line, "setlocalvarint("BookShelf", 1);".

Hope this helps somewhat.

(This post was last modified: 06-13-2011, 08:06 PM by Nye.)
06-13-2011, 08:05 PM
Find


Messages In This Thread
3buttons then a bookshelf opens - by xtron - 06-13-2011, 03:28 PM
RE: 3buttons then a bookshelf opens - by Kyle - 06-13-2011, 08:03 PM
RE: 3buttons then a bookshelf opens - by xtron - 06-13-2011, 08:13 PM
RE: 3buttons then a bookshelf opens - by Kyle - 06-13-2011, 08:28 PM
RE: 3buttons then a bookshelf opens - by xtron - 06-13-2011, 08:38 PM
RE: 3buttons then a bookshelf opens - by Kyle - 06-13-2011, 08:58 PM
RE: 3buttons then a bookshelf opens - by xtron - 06-14-2011, 02:58 PM
RE: 3buttons then a bookshelf opens - by Apjjm - 06-15-2011, 03:31 PM
RE: 3buttons then a bookshelf opens - by xtron - 06-15-2011, 06:39 PM
RE: 3buttons then a bookshelf opens - by Kyle - 06-15-2011, 07:39 PM



Users browsing this thread: 1 Guest(s)