No idea about functions and propertys (Object.IgnoreWalkbehinds)... [SOLVED]

Started by , Mon 06/11/2006 11:51:13

Previous topic - Next topic

NachtPoet

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

Ashen

What do you mean by "I found the right property and filled it in"? You mean the Object.IgnoreWalkbehinds 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:
Code: ags

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.
I know what you're thinking ... Don't think that.


SMF spam blocked by CleanTalk