SOLVED: player does not walk in cutscene

Started by salak, Thu 05/09/2013 22:00:50

Previous topic - Next topic

salak

the character says his words instead of walking, and then cutscene ends. function goes like this:


function room_FirstLoad()
{
StartCutscene(eSkipESCOnly);
{cHaliKarisi.Walk (435, 181);
cDeha.Walk (142, 190);
cDeha.Say ("blah blah");
}
EndCutscene();cDopsu.ChangeRoom (15);}

cDopsu is the playable character. cHaliKarisi walks, but cDeha doesn't.

Ghost

You should try using the "blocking" parameter:

CHARACTER.Walk(100,200,eBlock);

That guarantees that walking is done first (the game "blocks" all other actions until the character has reached his target).

salak

That was exactly what I needed to know since a long time, thanks a lot.

Khris

Note that you can use code tags: [code=ags] your code here [/code].
Also, you don't need the inner brackets.
Code: ags
function room_FirstLoad()
{
  StartCutscene(eSkipESCOnly);
  cHaliKarisi.Walk(435, 181);  // defaults to eNoBlock
  cDeha.Walk(142, 190, eBlock);
  cDeha.Say("blah blah");
  EndCutscene();
  cDopsu.ChangeRoom(15);
}

Slasher

I think its about time code=ags was automatically implemented by the insert code # icon.




Khris

We did have the nice dropdown menu, and it did insert code=ags, before the editor was changed all of sudden, and for the worse, imo.

SMF spam blocked by CleanTalk