Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: on Mon 06/11/2006 11:51:13

Title: No idea about functions and propertys (Object.IgnoreWalkbehinds)... [SOLVED]
Post by: on Mon 06/11/2006 11:51:13
Hello!
I am a absolut AGS Newbie and standing at the first big Problem:

I need to use the property to make an object ignore the walkbehind. I found the right property and filled it in.
What do I need to do now, to make it work?
I would be really thankfull, if someone could explain it to me step by step.

THX. Jan
Title: Re: No idea about functions and propertys...
Post by: Ashen on Mon 06/11/2006 12:33:29
What do you mean by "I found the right property and filled it in"? You mean the Object.IgnoreWalkbehinds (http://www.adventuregamestudio.co.uk/manual/Object.IgnoreWalkbehinds.htm) property?

Exactly what you'd do with it depends on when you want the object to start ignoring the Walkbehinds, but assuming it's from as soon as the player enters the room:
On the 'Settings' window of the Room editor, click the 'Interactions button (a red 'i'), or press Ctrl-I.
Right-Click 'Player enters room (before fadein)' and select 'New Run Script action'.
In the Script editor, add:

object[0].IgnoreWalkbehinds = 1;

(Replace object[0] with the right number or Script-o-Name for your object.)

And please, use more descriptive thread titles in the future.
Title: Re: No idea about functions and propertys (Object.IgnoreWalkbehinds)...
Post by: on Mon 06/11/2006 12:42:01
Thanks a lot!

Greez ;D, JAn