Nope even with the UnlockView function I get the error, plus I'm not sure if this is correct but I also want to hold on the last frame of that view change so I don't know if I;d want to release the view back to AGS.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menu{
if (cJohnny.IsCollidingWithObject(oGasleak)) {
cJohnny.LockView(34);
PlaySound(6);
cJohnny.Animate(0, 3, eOnce, eBlock, eForwards);
Wait(50);
Display("Message is displayed.");
gGUIWindow.Visible = true;
oGasleak.Visible = false;
oGas_leak2.Visible = true;
}
function room_Load()
{
if (cStorebot.PreviousRoom == 5) {
oStore_Crate.Visible = false;
}
else if (cJohnny.PreviousRoom == 5) {
oStore_Crate.Visible = true;
}
}
function oStore_Crate_Interact()
{
if (player.Name == "Storebot") {
cJohnny.Walk(380, 332, eBlock, eWalkableAreas);
cJohnny.Walk(390, 320, eBlock, eAnywhere);
oStore_Crate.Visible = false;
cJohnny.LockView(29);
cJohnny.Animate(0, 5, eOnce, eBlock, eBackwards);
cStorebot.Walk(356, 319, eBlock, eWalkableAreas);
cStorebot.FaceCharacter(cJohnny);
cStorebot.LockView(36);
cStorebot.Animate(1, 4, eOnce, eBlock, eForwards);
cStorebot.UnlockView();
cStorebot.LockView(35);
cJohnny.FollowCharacter(null);
}
else if (player.Name == "Johnny") {
oStore_Crate.Visible = true;
cJohnny.Walk(380, 332, eBlock, eWalkableAreas);
cJohnny.Walk(390, 320, eBlock, eAnywhere);
oStore_Crate.Visible = false;
cJohnny.LockView(29);
cJohnny.Animate(0, 5, eOnce, eBlock, eBackwards);
Wait(40);
Display("I really feel safe in here but I can't sit around forever");
cJohnny.Animate(0, 5, eOnce, eBlock, eForwards);
oStore_Crate.Visible = true;
cJohnny.UnlockView();
cJohnny.LockView(1);
}
}
function room_RepExec()
{
if (cJohnny.IsCollidingWithObject(oGasleak)) {
cJohnny.LockView(34);
cJohnny.Animate(0, 3, eOnce, eBlock, eForwards);
Display("You are Dead!");
Wait(50);
gDeathWindow.Visible = true;
oGasleak.Visible = false;
oGas_leak2.Visible = true;
}
else if (cStorebot.IsCollidingWithObject(oGasleak)) {
oGasleak.Visible = false;
oGas_leak2.Visible = true;
}
}
By continuing to use this site you agree to the use of cookies. Please visit this page to see exactly how we use these.
Page created in 0.167 seconds with 16 queries.