This week we are working on some of the other features we want to put into our game. One important part of our game is going to be our pickup system. The idea is that we will find items scattered across the dungeon that will aid the players progression. There will be two types of items, pickups and relics. Pickups have an initial benefit like replenishing health or ammunition, while relics imbue the player with special abilites. The big issue I was having was with our health pickup. Initally, our pickup would simply damage the player and kill them instantly, and no effects on the mesh could be seen, appearing as a static default object similar to the basic geometry that Unreal provides.
To fix this issue, I started looking into the code itself. It was all due to a simple typo in the code. I was sending in damage to the health component, but I had forgotten to set it to a negative value. By setting it to a negative value, I have corrected the issue and now can heal the player with a standard health pickup. In addition to that, we found a nice asset pack that will represent the basic pickups very well, and I am looking forward to using them.
Did you like this post? Tell us
Leave a comment
Log in with your itch.io account to leave a comment.