Problems with animation while running dialog (SOLVED)

Started by Pantxito, Fri 25/09/2009 16:58:04

Previous topic - Next topic

Pantxito

Hi every body, i have a problem with one of my scripts:

function hSalida_Talk()
{
cPantxito.Walk(270, 615, eBlock, eWalkableAreas);
cPantxito.Say("Holaaa!");
cPantxito.FaceLocation(37, 490, eBlock);
Wait(40);
cTrollazo.ChangeRoom(1, 76, 674);
cTrollazo.ChangeView(TROLLSALE);
cTrollazo.Animate(0, 5, eOnce, eBlock);
cTrollazo.ChangeView(TROLL);
cTrollazo.Say("QUE QUIERES DESGRACIADO?!");
dTroll.Start();
cTrollazo.ChangeView(TROLLENTRA);
cTrollazo.Animate(0, 5, eOnce, eBlock);
cTrollazo.ChangeRoom(2);
}



I want the script to stop when the dialog (dTroll) starts, and continue the script when the dialog ends.

Beacouse the game execute when the dialog its on this last part :

cTrollazo.ChangeView(TROLLENTRA);
cTrollazo.Animate(0, 5, eOnce, eBlock);
cTrollazo.ChangeRoom(2);
}





NsMn

That's because Dialog.Start always waits until the script has ended. You will have to put the script after the dialog into the dialog script or dialog_request.

Pantxito


SMF spam blocked by CleanTalk