eSpeechLucasarts problems

Started by nightmarer, Wed 07/06/2023 20:38:40

Previous topic - Next topic

nightmarer

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.

Crimson Wizard

Which exact behavior do you want to get?

If you want to have no speech animation at all, then set SpeechView to 0.

nightmarer

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

Crimson Wizard

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

Khris

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

Code: ags
  player.SpeechView = -1;

SMF spam blocked by CleanTalk