Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: maniactcs on Tue 13/03/2012 14:19:46

Title: Player walks through doors
Post by: maniactcs on Tue 13/03/2012 14:19:46
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
Title: Re: Player walks through doors
Post by: Khris on Tue 13/03/2012 14:24:39
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().
Title: Re: Player walks through doors
Post by: maniactcs on Tue 13/03/2012 14:31:41
Hi I did try using the forums search but it wouldn't load anything.

Thanks for the reply
Title: Re: Player walks through doors
Post by: Khris on Tue 13/03/2012 17:59:55
The search can occasionally take a few seconds but it's up currently, just give it some time.