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
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
will try this out! thanks :)