Devlog#8: Introducing puzzle element - Gates
Hi guys! We are back with another devlog. Today, we'll discuss the another puzzle element in the game -stone gates. These gates present an exciting challenge for players to solve. Let's dive in!
In the game, you will find various stone gates that features a remarkable force field located right at thecenter. When the gate is closed, the force field restricts passage, making it impossible for players to cross. To open the gate, players must first activate a pressure button. As they do, the gate begins to open, with the stones gradually collapsing and descending towards the ground. Simultaneously, the force field automatically deactivates, enabling players to pass through the gate. Here's an image of how we planned the concept of these stone gates.


In Unity, we utilized the Animator component to enable more flexible gate animations. However, we encountered a challenge where the gate could only move between fully opened or fully closed positions. This made it difficult to blend animations if the character disengages from the pressure button, as the gate would snap back to its previous position.
To address this issue, we introduced a parameter in the Animator controller that allowed us to adjust the gate's position progressively. By modifying the value of this parameter from 0 to 1, we were able to achieve smooth transitions in the gate animation, even if the player disengages from the button. This modification ensured that the gate would move to its final position based on its last known position, allowing for a seamless and immersive gameplay experience.
[previewyoutube][/previewyoutube]
Thank you for reading our devlog. We hope you found our insights and solutions helpful and informative for your own game development projects. Keep an eye out for more updates from our team as we continue to work on enhancing the gameplay experience. As always, we welcome your feedback and thoughts. Follow us on twitter.
Best regards,
Playdew team
In the game, you will find various stone gates that features a remarkable force field located right at thecenter. When the gate is closed, the force field restricts passage, making it impossible for players to cross. To open the gate, players must first activate a pressure button. As they do, the gate begins to open, with the stones gradually collapsing and descending towards the ground. Simultaneously, the force field automatically deactivates, enabling players to pass through the gate. Here's an image of how we planned the concept of these stone gates.


In Unity, we utilized the Animator component to enable more flexible gate animations. However, we encountered a challenge where the gate could only move between fully opened or fully closed positions. This made it difficult to blend animations if the character disengages from the pressure button, as the gate would snap back to its previous position.
To address this issue, we introduced a parameter in the Animator controller that allowed us to adjust the gate's position progressively. By modifying the value of this parameter from 0 to 1, we were able to achieve smooth transitions in the gate animation, even if the player disengages from the button. This modification ensured that the gate would move to its final position based on its last known position, allowing for a seamless and immersive gameplay experience.
[previewyoutube][/previewyoutube]
Thank you for reading our devlog. We hope you found our insights and solutions helpful and informative for your own game development projects. Keep an eye out for more updates from our team as we continue to work on enhancing the gameplay experience. As always, we welcome your feedback and thoughts. Follow us on twitter.
Best regards,
Playdew team