Dev Log: 4/27/2023 - Thwip Progress: Martin Alcantar Peña, Lead Gameplay Developer
This week I focus on the health aspect of the player, being able to have default amount of life points and being able to get damage to eventually die and in the future end with a death and respawn, though for now I just made so the game disables the player input when the life points are less or equal than zero, for testing purposes I also created a killbox and a killfloor, though the killfloor is mainly to avoid the player falling to the infinite if they go out of boundaries.
Despite sounding like a simple process, I had some problems, not a lot but they keep me busy for a decent amount of time. The first problem was a compiling error that I had while trying to build the health component, I wasn't able to create the HealthComponent needed for the BasePlayer, but after some trial and error and checking the unreal documentation i got that sorted out. My second problem was the hitbox of my killfloor, the overlap of the hitbox of both the floor and the player wasn’t working due to the killfloor mesh and collision overlapping each other, not allowing the hitbox to interact with the player, this required me to personally customize the settings and size of both the collision and the mesh, and it took some trial and error to get it correctly, but it works now, thanks to some research for my part also.
Did you like this post? Tell us
Leave a comment
Log in with your itch.io account to leave a comment.