Speech animation ... help?

Started by albertosr88, Thu 16/06/2011 16:11:40

Previous topic - Next topic

albertosr88

 :) 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.

Khris

You can change the speech view like this:

Code: ags
  cReaper.SpeechView = 6;


Just change it back to their normal one after they stood up again.

monkey0506

Also, to help make things more readable, you can give your views names. So you could then do something like:

Code: ags
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 ;)).

SMF spam blocked by CleanTalk