Hi there!
After hours of googling and searching the AGS board I finally decided to post my question here:
I used the cCharacter.ChangeRoom() function a dozen times, but it somehow doesn't work in one specific room anymore.
Here's the code:
Code: ags
I'm returning from a dialog (with CallRoomScript(10); ) and just want that both characters change to room 4.
But only cCharacter changes (he disappears) and after the Wait(40); a quick fade-out and fade-in occurs, but my
cPlayerCharacter is still in the same room. No error message, nothing.
I've tried various things, like changing to another room, but it seems my Player Character can't leave this room anymore.
Accessing Room 4 from other places is no problem, so there's no problem with Room4.
Is there anything I don't know? I found this here "This means that you should not use any other commands which rely on the new room (object positionings, and so on) after this command within the same function." but i don't know of any other commands which are currently running...
I would be endlessly helpful if anyone could give me a hint, this problem already cost me 4 hours...
Thank you!!
Cheers,
Christian
After hours of googling and searching the AGS board I finally decided to post my question here:
I used the cCharacter.ChangeRoom() function a dozen times, but it somehow doesn't work in one specific room anymore.
Here's the code:
function on_call (int value) {
if (value == 0) {
disableBooks();
}
else if (value == 10){ //Returning from a Dialog
Display ("End Of Act 1");
Wait(40);
Display("Now it should change to Act 2...");
cCharacter.ChangeRoom(4); //This character disappears
Wait(40);
cPlayerCharacter.ChangeRoom(4); //but the player character stays in the same room
}
}
I'm returning from a dialog (with CallRoomScript(10); ) and just want that both characters change to room 4.
But only cCharacter changes (he disappears) and after the Wait(40); a quick fade-out and fade-in occurs, but my
cPlayerCharacter is still in the same room. No error message, nothing.
I've tried various things, like changing to another room, but it seems my Player Character can't leave this room anymore.
Accessing Room 4 from other places is no problem, so there's no problem with Room4.
Is there anything I don't know? I found this here "This means that you should not use any other commands which rely on the new room (object positionings, and so on) after this command within the same function." but i don't know of any other commands which are currently running...
I would be endlessly helpful if anyone could give me a hint, this problem already cost me 4 hours...
Thank you!!
Cheers,
Christian