Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: on Tue 24/10/2006 00:13:34

Title: Setting walk-to points for objects.
Post by: on Tue 24/10/2006 00:13:34
Hi,

I've gone through the beginners tutorial and after the key object is made and the interactions are done with, it says that the key will be able to be picked up from anywhere in the room but it's okay for the time being. I've scrolled ahead and it doesn't return to the topic of setting a walk-to point for the key object before the player can pick it up.

I have looked around for quite a bit and can't seem to find the answer for this one... Can anyone let me know where I can find the info for this?

Thanks alot I'm such a NOOB and I hope I'm not upsetting anyone by posting this question...(I know there are alot of rules about what to check first, but I can't seem to find it!)
Title: Re: Setting walk-to points for objects.
Post by: Babar on Tue 24/10/2006 00:21:23
I don't think objects have walkto points. That is only for hotspots. You'd have to add it yourself in the sequence of events. If you are using the interaction editor, just select "Move character to" and select a point close to the object.
Title: Re: Setting walk-to points for objects.
Post by: Ashen on Tue 24/10/2006 00:24:10
Babar's right - you can't find it because it doesn't exist. Objects (and Characters, for that matter) don't have Walk-To points in the same way Hotspots do.

You'll have to move the character there 'manually', with the Character.Walk (http://www.adventuregamestudio.co.uk/manual/Character.Walk.htm) script command, or the 'Character - Move character' Interaction Editor command. A forum search for 'walk to points for objects' should turn up a few previous topics, but I think they all suggest the same thing.

There are the Object.X/Y properties, but they're not quite the same thing - they refer to the object's placement in the room (bottom-left corner of the object's sprite). Might be of some use, though.
Title: Re: Setting walk-to points for objects.
Post by: Janik on Sat 04/11/2006 02:55:40
Try the noblock module: http://www.adventuregamestudio.co.uk/yabb/index.php?topic=26945

It has code for custom walk-to points for hotspots and characters.