This is a good way to introduce tasks and narrative to a dungeon crawl type game, creating the need for the player to face challenges.
My setup for this is to create doors that trigger and close when the player enters one of these specific rooms, then have a placeholder switch to open them again, in preparation for being triggered by the real event completion when the level is developed further later in the year.
The door consists of a door mesh with a wood texture which animates open and closed, which is the part locking the player in the room.
After some playtesting, it was found that the player could exit the room by jumping over the door while it was raising up to close, causing a bug which stopped game progression.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0ywJ42NmF-CUtf0Ll9ZAKhxBM3Dt4p5cjmCjlU7ZOn52T5WEwzYdHRtM9-oduXEq90pySJNGQFrzyAzaIHKKUDg0b6g-taX_lXhydJNlOP5GgckTSZub9LKHemU4PvZ3nOxU_qNDeZrc/s640/2017-01-30.png)
A blocking volume had to be added to the door to block the player from exiting the room while the door animation is playing. This was a relatively simple fix, but effective in ensuring that the bug does not occur.
No comments:
Post a Comment