NPC walking off screen to different room [SOLVED]

Started by Plankton, Sun 02/01/2005 22:13:19

Previous topic - Next topic

Plankton

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!

strazer

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.

Plankton



SMF spam blocked by CleanTalk