Scripting question.

Started by Reven, Mon 20/03/2006 18:58:32

Previous topic - Next topic

Peder 🚀

Hi!

I started scripting my game now, and I got a problem.
What I am trying to do is changing the normal view and the speech view when the person talks to a person.
Cause the thing is when he talks to the person he will kneel down to get closer.

The thing is I have understood that the game performs all the actions "at once".
What I want to do is make the game wait doing more actions untill the last action is done before I change the view back.

This is my script right now (this is for the intro for a cutscene):
Code: ags

StartCutscene(eSkipESCOnly);
character[HELM].Walk(131, 113, eBlock, eWalkableAreas);Ã,  
character[HELM].FaceLocation(132, 78, eBlock);
character[HELM].ChangeView(12);
character[HELM].SpeechView = 12;
Wait(30);
DisplayMessage(0);
EndCutscene();
Display("You got to help the Angel and find what she needs.");
Display("She told you about a cave and a symbol that reveals the entrance.");
gui[0].Visible = true;
gui[5].Visible = true;
gui[6].Visible = true;
character[HELM].ChangeView(1);
character[HELM].SpeechView = 13;

SMF spam blocked by CleanTalk