Hauptmenü

Neuigkeiten:

Bitte unterstützt uns und bestellt über diese Links bei Amazon  oder HumbleBumble!

Remove Walk-Behinds Area ist das möglich?

Begonnen von blount, 11. Februar 2011, 19:51:57

Vorheriges Thema - Nächstes Thema

blount

Ich will eine Remove Walkable Area entfernen? Ist das möglich? Hintergrund ist das später ein Objekt eingeblendet wird das sonst durch die WalkBehind nur Teilweise zu sehen ist :-)

Rocco

Walk behind oder Walkable Area?

Walkable Area entfernst du mit

[ags]RemoveWalkableArea(5); [/ags]

für Walk behinds gibts:

ZitatSetWalkBehindBase
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.

fireorange

Also wieder aktivieren?

EnableWalkablearea(x); oder RestoreWalkableArea(x); müsste das gewesen sein (bring das gerne mal durcheinander!).

blount