Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Caracal on Mon 07/01/2013 10:58:54

Title: Second speech view [SOLVED in a second...]
Post by: Caracal on Mon 07/01/2013 10:58:54
Hello everybody, its me again after a longer period of not having any issues.
(which is a good sign)
But now I run into a problem that I have been wondering about for a long time.

How do I adjust a second/third/fourth… speech view for a character?

Throughout a longer game I want the main character to show emotions while speaking (giving the game some depth) or holding an item while speaking ect.
I just cant think of a proper way to do this. Thanks for any good help in advance!!!
Title: Re: Second speech view
Post by: Khris on Mon 07/01/2013 11:02:39
Code (ags) Select
  player.Say("Hello.");
  player.SpeechView = EGOSKEPTICAL;
  player.Say("Wait a moment...");
  player.Say("Did it never occur to you to look this up in the manual?");
  player.SpeechView = EGOSPEECH;
  player.Say("Never mind. It's that easy.");
Title: Re: Second speech view
Post by: Caracal on Tue 08/01/2013 09:15:31
Code (AGS) Select

player.Say("Oh, No its under the point "SpeechView property");
player.Say("No this was too easy! I am sorry, but thank you so mutch.");
Player.LockView(3);
    PLayer.Animate(20, 3, eOnce, eBlock, eForwards);
    Wait(60);
    Player.UnlockView();
    Player.ChangeRoom(304);
gInventory.Visible = false;
gDeathMessage.Visible = true;
aGameOver.Play;

;-)
Title: Re: Second speech view [SOLVED in a second...]
Post by: geork on Tue 08/01/2013 14:58:31
Dat unresolved quotation mark... :P