Less is More
Hello there, welcome back.
On this weeks devLog I will talk a little bit about strategizing. I will also be expanding on my previous dev blog. This week we, as a team, decided to put our focus on improving what we had instead of adding new things in. Since I was the lead AI programmer for my team, I was assigned with fixing a funny little bug that we introduced into the game on purpose... Let me explain. Our milestone was due at 11:59 pm, as I am sure most of you reading are aware of those dark numbers that have scarred me for life, and it was past 10 pm. Bear in mind that building a UE4 game and making an installer takes quite a while so we have to stop working well before 11:59. Nevertheless, lets get back to the point, the issue we were having is that the main combat aspect of our game was missing, meaning the enemy could not damage the hero, so one of my teammates suggested we make it so every time the ai swings, it would Get the health of the player and subtract 25 from it, so whilst in combat, it would give the illusion that you are being hit. So that is how we turned that in. The following weekend I spent hours researching how to best fix this issue, and I found it. There is a function called... Wait, before I tell you that, let me tell you my biggest annoyance with Unreal. Yes it offers a wide variety of tools that we can access and use, but it is so hard to find them. You have to do hours upon hours of research until you are lucky enough to stumble upon exactly what you needed. As I was saying, the function is called ApplyDamage, I know, how did I not think of that. This function simply takes in the damaged actor, the damage causer, and the damage amount. But this leads to the same issue happening, every time the enemy swings it will still apply that damage. Well I found a fix for that as well, a little something called SphereTraceByChannel, which basically helps detect if the sword actually made contact. Without boring you with details, that was basically it, that's the fix. If you take away one thing from this post, let it be this, please do not procrastinate and leave things until last minute, it will only cause you problems and headaches in the future. Do what needs to be done, when it needs to be done.
Get Element Clash
Element Clash
Element Clash, save your legacy!
Status | Released |
Authors | DJMyers16, MaxMatusR, willj003, B0SS0770 |
Genre | Adventure, Action |
Tags | Action-Adventure, Action RPG, demo, Low-poly, Magic, Monsters, Singleplayer, Third Person |
More posts
- End of the RoadMay 26, 2023
- Sooo stupid...May 18, 2023
- Flash Darn ItMay 12, 2023
- The beginning of the EndMay 05, 2023
- Slow day at the office...Apr 29, 2023
- Some things are that easyApr 21, 2023
- Math for Experience - Dustin MyersApr 14, 2023
- Research EVERYTHINGApr 11, 2023
- Growing a Skill Tree - Dustin MyersMar 18, 2023
- To shoot or not to ShootMar 11, 2023
Leave a comment
Log in with itch.io to leave a comment.