Player walks through doors

Started by maniactcs, Tue 13/03/2012 14:19:46

Previous topic - Next topic

maniactcs

Hi all !

When I place my door in my room I want it to be locked so the player can't get through. I have placed the door as an object and placed the edge at the top of the room and the walk able area behind the door but the player can walk right through the door and into the next room. Anyway around this ?

Thanks

Paul

Khris

Please use the forum search before opening a thread. This has been asked and answered lots of times.

If you set the door object to solid, it'll block the player. The alternative is to draw the walkable area near the door using another ID/color and RemoveWalkableArea() it in room_Load. Once the door is opened, RestoreWalkableArea().

maniactcs

Hi I did try using the forums search but it wouldn't load anything.

Thanks for the reply

Khris

The search can occasionally take a few seconds but it's up currently, just give it some time.

SMF spam blocked by CleanTalk