Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: red runner on Mon 09/06/2008 21:57:04

Title: Delay effect
Post by: red runner on Mon 09/06/2008 21:57:04
I'm trying to get my character to walk to a hotspot, then perform an action. Instead, the action is performed before the character arrives. For example, I may want him to walk to a door, then go to another room. He just goes to another room. I'm running AGS 3.0.1. I'm saying this because it didn't seem to be a problem runnign older versions.
Title: Re: Delay effect
Post by: Matti on Mon 09/06/2008 22:06:03
Quote from: red runner on Mon 09/06/2008 21:57:04For example, I may want him to walk to a door, then go to another room. He just goes to another room.

In this case you can just set a walk-to point for the door.

If you're scripting it nevertheless, use the blocking-function: Character.Walk(x,y, eBlock);, so the script will wait until the move is finished..
Title: Re: Delay effect
Post by: red runner on Sun 15/06/2008 00:18:07
Thanks, I didn't see the walk-to coordinates. The code might come in useful.