Troglodyte In Underbelly: Dynamic Interactions

Dynamic Interactions

Jordan Ireland


In the current week of development, a significant challenge revolved around revamping the interaction system and implementing a new inventory feature allowing players to click and drag items onto the hotbar. The existing interaction system lacked fluidity and responsiveness, leading to a suboptimal user experience. Additionally, the absence of a drag-and-drop inventory system hindered players' ability to efficiently manage their items in the game. This problem had the potential to frustrate players, as the core mechanics of interacting with the environment and managing inventory play a crucial role in the overall enjoyment of the game.

By using the IDragHandler interface in Unity, it was a breeze of checking if the mouse was over a hotbar slot while dragging and inventory item, then it was just up to a series of checks to see if the user is dragging it to/from the inventory or swapping hotbar slot to hotbar slot.



The root cause of the issue lay in the outdated interaction system and the absence of a drag-and-drop inventory feature. To address this, I initiated a comprehensive overhaul of the interaction system, introducing more responsive controls. Simultaneously, I implemented a flexible drag-and-drop inventory system, allowing players to seamlessly organize their items on the hotbar. This solution not only enhances the player's control over their in-game actions but also contributes to a more intuitive and enjoyable user interface. With the revamped interaction system and the addition of the drag-and-drop inventory feature, players can now engage with the game more effortlessly, enjoying a more immersive and user-friendly experience.



Comments

Popular posts from this blog

Troglodyte In Underbelly: Git Issues