SetWalkBehindBase (int area, int baseline)
Changes the walk-behind AREA to have new BASELINE. This effectively allows
you to turn walk-behinds on and off, although you can do other tricks with
it as well. BASELINE is from 1 to the height of the room (normally 200) and
moves the line which you set originally in the editor.
Passing BASELINE as 0 disables the walk-behind area, so that the player
will always walk in front of it.
Basically, if the character's feet are below BASELINE, he will be drawn in
front of it, otherwise he will be drawn behind it.
Example:
SetWalkBehindBase (3,0);
will disable the walkbehind area number 3.
See Also: Object.Baseline
|