I first started experimenting with blueprints to see what I can achieve in my game. I gave myself a task - to learn unreal and make the player able to destroy this object after a couple hits. When starting I didn't know how to add anything to blueprints, the first hurdle was finding how to attach a box collision. After taking some time to get acclimatized to how unreal works I found a lot of things easier than expected like adding and using variables in junction with additional components.
I've had some coding experience before so I was able to quickly identify what needs to be identified and set to carry out a task. I progressed quickly finding how to check for collision and identify clicks, but there was one thing I couldn't foresee. I was using On begin overlap and so attacking while overlapping will do nothing, but after some time I found event tick and used that instead.
After getting some more experience I instead used on LMB to get overlapping actors in an array and cycle them to do damage. This is way more efficient as the blueprint only activates when needed to and also works for multiple actors.
Comments