Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Newest Update Build: Problems with Mechanics

Author: Joanna Cabrera

The latest update in our build introduces a fully functional menu system for win/loss conditions. This enhances gameplay progression and helps establish a complete game loop. Additionally, we implemented a key bind that allows the enemy to deal damage until their health is completely depleted. Our next steps include making the draw, shuffle, and card placement mechanics fully operational in the upcoming build.

This week, I encountered a significant issue with the implementation of the cursor and card display system. Initially, I had a list of card prefabs, numbered from 1 to 10, that could be modified later for design and stats purposes. However, I ran into a problem where the cards failed to appear on the gameboard as intended. This was a critical issue because it directly impacted the player's ability to interact with their deck, thus hindering core gameplay mechanics. Addressing this problem was of high importance to ensure that players could draw, view, and play cards smoothly, which is essential for a functional game loop in a deck-building game.

Upon investigating the problem, I realized that the issue was due to the way the card prefabs were being instantiated and displayed. Despite hours of debugging, the cards would not render on the gameboard. To resolve this, I decided to switch to a different approach: cloning a single card prefab to be displayed in the player's hand. However, this solution introduced a new problem where the cloned cards spawned at incorrect positions, far from the intended gameboard area.

After further debugging, I discovered that the position and parent settings for the cloned card were not properly configured, leading to their incorrect placement. By adjusting the instantiation logic, ensuring that the cloned card's position was set relative to the gameboard, and correctly assigning the parent transform, I managed to position the cards accurately in the player's hand. This solution not only made the cards appear correctly but also ensured they were interactive and draggable by the player, greatly improving the overall user experience.

This fix will significantly enhance the player's interaction with their deck, making the game feel more responsive and intuitive. It ensures that core gameplay mechanics such as drawing, viewing, and playing cards function smoothly, which is crucial for the enjoyment and playability of the game.

Support this post

Did you like this post? Tell us

Leave a comment

Log in with your itch.io account to leave a comment.