Character View woes during sound playback

Started by James Kay, Tue 27/01/2004 12:29:18

Previous topic - Next topic

James Kay

In an intro/cutscene I change the player character's view (to a sit-down set of views) and it's corresponding talk view.

This is the script (the relevant part of it):

Wait(10);
SetCharacterView(EGO, 49);
ObjectOff(3);
SetCharacterSpeechView(EGO, 50);
FaceLocation(EGO, 112, 131);
DisplaySpeech(EGO, "xxxxxxxxxxxxxxxxx");

//AnimateCharacter(EGO, 1, 5, 0);
PlaySound(52);
Wait(60);

DisplaySpeech(EGO, "xxxxxxxxxxxxxx");
FaceLocation(EGO, 107, 155);
DisplaySpeech(EGO, "xxxxxxxxxxxxxx");
DisplaySpeech(EGO, "xxxxxxxxxxxxxx");

character[EGO].x = 117;
character[EGO].y = 145;
SetCharacterView(EGO, 1);
SetCharacterSpeechView(EGO, 2);
ObjectOn(3);


Everything seems fine, except that when I play the sound, the character view returns briefly to the original setting. Even with the animation command edited out (in case I mucked that up).
Really odd.
After the sound, the view returns back to what I set it to (49 and 50), but just for that brief second of sound, it's back to 1 and 2, the original character views.

What's going on???

J

James Kay

Ah, the problem is solved if I use ChangeCharacterView in stead of SetCharacterView.
Curiouser and curiouser.
Well, at least it works now.

SMF spam blocked by CleanTalk