and it i kindda hard to code.
There are to regions on the floor & 4 player characters.
2 of the characters are keys to activating the switches(Dave, chris)
When dave stands on the region for a sec he will activate the region1 function.
Dave will then walk to 214, 306
Then ags will check to see if Chris has been placed on region 2 >> If not then you must place chris on region2
Both regions work the same way jut were there is a Dave there is a Chris.
Code: ags
There are to regions on the floor & 4 player characters.
2 of the characters are keys to activating the switches(Dave, chris)
When dave stands on the region for a sec he will activate the region1 function.
Dave will then walk to 214, 306
Then ags will check to see if Chris has been placed on region 2 >> If not then you must place chris on region2
Both regions work the same way jut were there is a Dave there is a Chris.
function region2_Standing()
{
if(player.ID == chris.ID){
beam2.TweenTransparency(0.5, 0, eEaseInTween, eBlockTween);
Dave.Walk(214, 306, eBlock, eWalkableAreas);
if(Dave.x == 128){
if(Dave.y == 305){
if(region[1].RunInteraction(0)){
chris.SayAt(8, 167, 320,"Dave:What the hell was that!?!");
ShakeScreen(1);
tifa.SayAt(8, 167, 320,"Tifa:Look!");
tifa.FaceObject(Void, eBlock);
muffy.FaceObject(Void, eBlock);
chris.FaceObject(Void, eBlock);
Dave.FaceObject(Void, eBlock);
Void.TweenTransparency(1.0, 0);
muffy.SayAt(8, 167, 320,"Muffy:It's a void. We can travel to a area not visible to man's eye.");
region[1].Enabled = false;
region[2].Enabled = false;
}
}
}
}
else if(?){
}
}