Part 11 - Objective system
- kszyni1
- May 28, 2021
- 1 min read
Hello, I've been pretty busy recently, the game jam went pretty well and I had a lot of fun, plus I learned how to make pixel art so that's nice. But back to my FYP (also I don't know if I should use FYP or FMP as people I know use different ones, imma stick with FYP as it sounds more normal), I created an objective system. YAY! It works well, I can place objects in the scene which will change the player's objective text but I can also change the current objective through the player blueprint.
I also created a counter system to keep track of the number of bandits killed as well as the number of maps collected. The counting system was significantly harder to implement than I expected as I don't know how to update run a code both 'onevent tick' as well as 'On component begin overlap' simultaneously. So I ended up having to pass the counter over from the objective script to the player script and then back to the objective script, although there is definitely a way to do it the way I wanted to originally.
Comments