Posts

Showing posts from July, 2023

Ammo, reloads and strange Unreal behaviour

 This last week I've been studying mostly on the ammo system, this involved the system to reload the gun if the player has ammo in the inventory, update the HUD of the player based on the ammo and the animation of the player reloading. I'm not a big fan of editing animations because I feel like sometimes it can be a bit repetitive but this weekend it was really satisfying, I realized that I'm now able to make simple edits on the animations by my own to match them to what I need. I'm pretty sure this new skill will help me to work faster because I used to spend a lot of time looking for the perfect animation for each situation and now, I can modify animations which are near to what I need. The ugly part of the week was an error which made me stay some hours debugging and checking my code line by line without finding an answer, I added some lines of code on a component class and after that my component was broken. After some debugging, I discovered that the component beca...

Gunplay and basics shaders

 The last couple of weeks I studied a lot of interesting things about Unreal, some of the most important were how to add a crosshair on player's HUD to show where are they aiming, how to ignore certain objects and components using channels and how to change the animations based on player's inputs. Another interesting thing that I learned was how to create a shader to "disintegrate" the characters when their life is equal or less than zero. I has worked a bit with shaders on Unity and now I know some basic things about them on Unreal and I have to say that shaders are amazing, you can add a lot of incredible effects using them, I would like to learn more about shaders to create some interesting effects. It was really exciting but at the same time it has been a bit hard because some of these things were totally new for me and I learned them applied to multiplayer games, that made it harder because besides of the regular difficulty of the topics I had to learn how to rep...