Animation Troubles (Solved)

Started by , Tue 30/01/2007 03:13:23

Previous topic - Next topic

Kardin

Alright, here's my problem: I've got a secretary character in my game, and halfway through the dialog, she interrupts you because she's getting a phone call. From that point in, she's supposed to be in the "pressing ear to phone and talking" view (view 8 ) permanently, meaning when she's talking, or just standing there she blabbering into the reciever.

Here's what happens: She picks up the phone, but put it down whenever she's talking, and when she isn't talking, her mouth isn't moving, which it should be. Additionally, the dialog options never come up, it jumps straight to the phone ringing.

Here's the event in question, I'm sure it's riddled with errors: .

Akatosh

How about setting the speech view instead of the normal view?

Ashen

#2
As Akatosh says, you're changing the Normal view for the character, not the Speech view, so it'll have no effect. The Speech view can only be changed with a 'Run script' interaction, which means you're going to have to run all of those commands through scripting. ('Run script' interactions are processed after Interaction Editor commands, so it still wouldn't change the Speech view untill after the messages are displayed.) Don't worry, though, it's very basic scripting - just use the manual and the 'Text script equivalent' bit from the Interaction Editor to guide you.

Quote
when she isn't talking, her mouth isn't moving,
You could try adding Character.Animate commands between the speech, to keep her mouth moving. Or, use her Idle view, with a delay of 0.

Quote
Additionally, the dialog options never come up,
Does the dialog not come up at all, or just not until after everything else? Dialogs are 'queued' and won't run until all other  commands are finished - so this could just be normal AGS behaviour. Leaving it out of the 'Run script' (i.e. keep the 'Game - Run dialog' command) should make it run first, or you can make a separate 'Run script' just for it.
I know what you're thinking ... Don't think that.

Kardin

Quote from: Ashen on Tue 30/01/2007 11:08:56('Run script' interactions are processed after Interaction Editor commands, so it still wouldn't change the Speech view untill after the messages are displayed.) Don't worry, though, it's very basic scripting - just use the manual and the 'Text script equivalent' bit from the Interaction Editor to guide you.
Hmm... I don't remember seeing anything about that in the manual. Link, please?

Scorpiorus

#4
The reason why it happens covered in the Understanding blocking scripts section of the Manual.

It may seem to be quite an advanced stuff, if one is just starting to get familiar with AGS and scripting, though.

SMF spam blocked by CleanTalk