Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: LinkMaestro on Tue 03/06/2008 19:53:12

Title: Walking to a position before dialog starts
Post by: LinkMaestro on Tue 03/06/2008 19:53:12
I want my character to move to a certain position when the player clicks the 'look' icon on an object before the discription of the object starts.  Right now the dialog starts, THEN the character walks.
Title: Re: Walking to a position before dialog starts
Post by: Gepard on Tue 03/06/2008 20:44:44
Have you tried putting the dialog request function ont the beginning of the dialog?
Title: Re: Walking to a position before dialog starts
Post by: LinkMaestro on Tue 03/06/2008 20:46:37
function hHotspot2_Look()
{
player.Walk (135,127);
Display(" Beyond the walls of the cell, you can see a hallway equally as filthy as the room you're in.  The rest of the ship, you know, is no better.");
}


that's what I have...
Title: Re: Walking to a position before dialog starts
Post by: Khris on Tue 03/06/2008 20:47:20
Try a blocking walk.
  player.Walk(135, 127, eBlock);

.Walk is non-blocking by default.
Title: Re: Walking to a position before dialog starts
Post by: LinkMaestro on Tue 03/06/2008 20:56:56
Ah, there it is. I had tried that before, but I didn't put a  ' , ' after the second coordinate.  Thanks much!