Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: salak on Thu 05/09/2013 22:00:50

Title: SOLVED: player does not walk in cutscene
Post by: salak on Thu 05/09/2013 22:00:50
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.
Title: Re: player does not walk in cutscene
Post by: Ghost on Thu 05/09/2013 22:20:22
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).
Title: Re: player does not walk in cutscene
Post by: salak on Thu 05/09/2013 22:39:40
That was exactly what I needed to know since a long time, thanks a lot.
Title: Re: SOLVED: player does not walk in cutscene
Post by: Khris on Fri 06/09/2013 01:20:57
Note that you can use code tags: [code=ags] your code here [/code].
Also, you don't need the inner brackets.
Code (ags) Select
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);
}
Title: Re: SOLVED: player does not walk in cutscene
Post by: Slasher on Fri 06/09/2013 08:45:09
I think its about time code=ags was automatically implemented by the insert code # icon.



Title: Re: SOLVED: player does not walk in cutscene
Post by: Khris on Fri 06/09/2013 10:05:50
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.