How do I block passage past a certain point, then unblock it later?

Started by cojeje, Today at 11:46:53

Previous topic - Next topic

cojeje

Hello. I have made enemies in my game and now i need to block off passage until theyre defeated. how do i do it? I already got the fighting system figured out i just need to block off passage. Thanks in advance

Crimson Wizard

Two common solutions are:

1. Make a separate walkable area (there are 15 per room), disable it at first and enable when the time comes:
https://adventuregamestudio.github.io/ags-manual/Globalfunctions_Room.html#restorewalkablearea

2. Make a Solid object covering the passage and turn it invisible by setting Transparency to 100.
When you need a passage turn Solid to false:
https://adventuregamestudio.github.io/ags-manual/Object.html#objectsolid
https://adventuregamestudio.github.io/ags-manual/Object.html#objecttransparency



SMF spam blocked by CleanTalk