Doesnt AGS stores RemoveWalkableAreas on RoomChange?

Started by Rocco, Thu 12/03/2009 16:11:52

Previous topic - Next topic

Rocco

Im wondering, cause i have set a walkable area:
RemoveWalkableArea(3);
but when the player leaves the room and come back again, he can walk on this area.

So i have to watch manually over the state of the Area and switch it off and on during roomchanges.
Is this behavoir normal?



Khris

QuoteRemoveWalkableArea (int areanum)

Removes the walkable areas in colour AREANUM from the current room. You can put the area back with RestoreWalkableArea.

NOTE: When the player leaves the screen, all the walkable areas are reset. Therefore, if you want an area to remain off when they leave the screen, you will need to set a flag, then run the RemoveWalkableArea command in the "Player enters room" event when they return.
;)

Rocco


SMF spam blocked by CleanTalk