Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Dr Lecter on Tue 29/08/2006 00:22:34

Title: Two characters in one?
Post by: Dr Lecter on Tue 29/08/2006 00:22:34
I was watching South Park eariler, and I was thinking, what if you wanted to create a character that was basically a composite character, such as Mr. Garrison and Mr Hat. I've been trying to think of a way to impliment such a character, but short of changing their talking views before every line they say, or having one character also follow the other gets abit messy, is there any other way to do it?
Title: Re: Two characters in one?
Post by: Khris on Tue 29/08/2006 15:20:25
There's no other way, I'm afraid.
To keep the code clean, use a function like this:
function MrHatSay(String text) {
Ã,  cGarrison.SpeechView=x;
Ã,  cGarrison.Say(text);
Ã,  cGarrison.SpeechView=y;
}
Then you can at least use
cGarrison.Say("bla");
MrHatSay("bla");
...


Unfortunately, there's no similiar shortcut for dialog scripts, you'd have to use run-script, although you could use a second character if Garrison isn't going to move during the dialog.
Title: Re: Two characters in one?
Post by: fovmester on Fri 01/09/2006 09:45:19
Interesting concept. Two characters in one. It kinda feels familiar, though. Wasn't there siamese twins in some old adventure game?
Title: Re: Two characters in one?
Post by: strazer on Fri 01/09/2006 11:41:07
In Sam & Max at the carnival.
Title: Re: Two characters in one?
Post by: Gilbert on Fri 01/09/2006 11:52:47
Or the 3-headed monkey buddy player character near the end of DOTT.
Title: Re: Two characters in one?
Post by: fovmester on Wed 06/09/2006 11:52:23
Gee, I really need to play those games again. I've started to forget their greatness!

Time to dig up those old game boxes!