Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: nightmarer on Wed 07/06/2023 20:38:40

Title: eSpeechLucasarts problems
Post by: nightmarer on Wed 07/06/2023 20:38:40
Hello, I have in my game SierraWithBackgorund as Speech style in my general settings.
But there are sometimes which I prefer not showing the mugshots.
So I'm using
Speech.Style = eSpeechLucasarts;
in my script.
The first problem is that whenever the character speaks it turns in the mugshot, as the SpeechView is still the mugshot. Then I change the SpeechView to the standard view of the caracter, and then whenever the character speaks it does the walking movement.
How can I deal with this problem?

Regards.
Title: Re: eSpeechLucasarts problems
Post by: Crimson Wizard on Wed 07/06/2023 20:54:38
Which exact behavior do you want to get?

If you want to have no speech animation at all, then set SpeechView to 0.
Title: Re: eSpeechLucasarts problems
Post by: nightmarer on Wed 07/06/2023 22:31:01
Quote from: Crimson Wizard on Wed 07/06/2023 20:54:38Which exact behavior do you want to get?
I want my character to have the standard view while he speaks, but without movement.

Quote from: Crimson Wizard on Wed 07/06/2023 20:54:38If you want to have no speech animation at all, then set SpeechView to 0.
I have just tried and I get this error: SetCharacterView: invalid view number
Title: Re: eSpeechLucasarts problems
Post by: Crimson Wizard on Wed 07/06/2023 22:53:43
Quote from: nightmarer on Wed 07/06/2023 22:31:01
Quote from: Crimson Wizard on Wed 07/06/2023 20:54:38If you want to have no speech animation at all, then set SpeechView to 0.
I have just tried and I get this error: SetCharacterView: invalid view number


Looks like it should be -1:
https://adventuregamestudio.github.io/ags-manual/Character.html#characterspeechview
Title: Re: eSpeechLucasarts problems
Post by: Khris on Fri 09/06/2023 10:27:41
SetCharacterView is not only the wrong command but also from the obsolete API. Are you using a really old version of AGS still?

You're supposed to do for instance

  player.SpeechView = -1;