ok...
Save this as a script and include it in your game.
Create the following levels in your /work/yourgame folder. Remember to name them; leftdoor
Rightdoor
topdoor
Build these as Map Entities
attach the right answer action to a sprite or model as a trigger for the player to click to open the door
////This is the script ///////
entity* leftdoor;
entity* rightdoor;
entity* topdoor;
action tdoor ///////attach this action to the map entity topdoor
{
topdoor=me;
}
action ldoor//////// attach this action to the leftdoor map entity
{
leftdoor=me;
}
action rdoor/////attach this action to the rightdoor map entity
{
rightdoor=me;
}
var doorpos1=41; //////these are adjusted to how far you want the door entity
var doorpos2=41; ////// to move
var doorpos3=71;
function ord //// open right door function
{
while(rightdoor == null)
{
Wait(1);
}
While(doorpos2 > 0)
{
doorpos2 -= 1;
rightdoor.x += 3 * time; ////3 is how fast the door opens
wait(1);
}
}
function otd()/////open top door
{
While (doorpos3 > 0)
{
doorpos3 -= 1;
topdoor.z += 3;
wait(1);
}
}
function old /////open left door
{
While (doorpos1 > 0)
{
doorpos1 -= 1;
leftdoor.x -=3 * time ;
wait(1);
}
}
function com /////this function calls all 3 to happen at once
{
old();
ord();
otd();
}
action answer ///// attach this to a sprite or model to start everything
{
my.enable_click=on;
my.event=com;
}