Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Hyperbro on Tue 11/10/2011 21:13:52

Title: Finishing player.Walk() before continuing rest of script
Post by: Hyperbro on Tue 11/10/2011 21:13:52
How is this done?
I use a slightly different interface, so I need to make the player walk places myself, but the problem is that he walks and does the thing he needs to do at the same time.
Title: Re: Finishing player.Walk() before continuing rest of script
Post by: pcj on Tue 11/10/2011 21:15:11
Use player.Walk(x,y,eBlock);

For more information, see the Help file.
Title: Re: Finishing player.Walk() before continuing rest of script
Post by: Hyperbro on Tue 11/10/2011 21:28:57
Quote from: pcj on Tue 11/10/2011 21:15:11
Use player.Walk(x,y,eBlock);

For more information, see the Help file.

Worked :D
Title: Re: Finishing player.Walk() before continuing rest of script
Post by: Khris on Tue 11/10/2011 22:51:44
That's the easy way, but you can keep the walking non-blocking (so the player can interrupt it) and the player character still does the thing only after they got there.

I wrote a module for this:
http://www.adventuregamestudio.co.uk/yabb/index.php?topic=36383.msg477380#msg477380