Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: albertosr88 on Thu 16/06/2011 16:11:40

Title: Speech animation ... help?
Post by: albertosr88 on Thu 16/06/2011 16:11:40
 :) Hi AGS forums user, i need a little help. I just stared a new game and i have this scene, style of broken sword or monkey island, when the main character have to be seated while he's speaking, but the problem is, i don't know what's the right command to do that.
I put cReaper.LockView(6)
          cReaper.Animate(0, 3, eRepeat, eNoBlock, eForewards)
          cReaper.Say("Hi");
Of course is wrong, completly wrong, but has i said, i'm a bigginer. What i should do for the Reaper (my character) speak while he's seated on a chair?
    Thanks.
Title: Re: Speech animation ... help?
Post by: Khris on Thu 16/06/2011 16:16:03
You can change the speech view like this:

  cReaper.SpeechView = 6;

Just change it back to their normal one after they stood up again.
Title: Re: Speech animation ... help?
Post by: monkey0506 on Thu 16/06/2011 20:33:54
Also, to help make things more readable, you can give your views names. So you could then do something like:

cReaper.SpeechView = VREAPERSITSPEECH;
// say some things while sitting
cReaper.SpeechView = VREAPERSPEECH;


Oh, and you can put your code between the [code] and [/code] tags to format it like we did, which helps make it easier for us to see as your code (especially when you have longer snippets ;)).