Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: matredman on Sun 22/02/2004 00:04:43

Title: Dialogue CharacterView etc
Post by: matredman on Sun 22/02/2004 00:04:43
Hello kind hearted computer users,

I am trying to get my character to face people (other"characters") when he initiates a conversation from either side of the other person. Say, they could be anywhere in a room and you click to talk-to, regardless of up down left or right of my character, I want him to face the person, it's basic etiquette. Right now he's acting like a right rude git.

And I want him to stay viewing that direction at least for the dialogue.

I suprised myself tonight by messing with the Global Script, but before that I only went and got down to about page 20 of the forum for an answer! I manged to find something about changing character view during dialogue moments, and felt a perverse pleasure in managing to do a 'run-script' operation so early in my AGS days.

But Alas! My character's deafult talking view is face-on like LucasArts style (talking into the monitor screen), and he keeps zipping back into that view during dialogue. ::)
Title: Re:Dialogue CharacterView etc
Post by: LordHart on Sun 22/02/2004 00:17:18
There is a line of code to add before the dialog which is FaceCharacter (whatever character you want to face);
Title: Re:Dialogue CharacterView etc
Post by: matredman on Sun 22/02/2004 15:36:01
OK,

I,ve got that working now. But I can't get the other character to turn, in response to the starting of a conversation.
Title: Re:Dialogue CharacterView etc
Post by: matredman on Sun 22/02/2004 15:37:46
Quote from: matredman on Sun 22/02/2004 15:36:01
OK,

I,ve got that working now. But I can't get the other character to turn, in response to the starting of a conversation.

I've been trying:

function dialog_request(int dialog) {
if (dialog == 1) {
Wait(70);
FaceCharacter(EGO,CUR);
FaceCharacter(CUR,EGO);
Wait(1);
}
}