Hi guys
I'm having trouble making an NPC walk to the edge of the screen and then appearing in the next room.
Right now the NPC vanishes into the next room before getting the chance to walk.
I need to script "wait for move to finish".
Code is as follows:
// Move shop girl
function dialog_request (int para) {
if (para == 1) {
MoveCharacter (SG, 317, 161);
NewRoomNPC(SG,1, 251, 137);
}
}
Thanks!
QuoteI need to script "wait for move to finish".
Commands that pause the script/game while they are being executed are called "blocking" in AGS.
Use the MoveCharacterBlocking function.
Thankyou!!!!!!
Now I understand.
:)
My pleasure. :)