The v2.22 update has gone live on the Marketplace.
Change Log:
I. Added Health Regeneration for the Hero Unit. The new BPC_Regeneration component can be added to any actor (including Towers) to add HP regeneration capabilities, provided that said actor also has a “BPC_Hitpoints” component.
II. Added a new Hitpoints component to easily add an HP system to any actor that implements the BPI_Hitpoints interface. Can be added to Towers, Enemy wave units, as well as Friendly defender units.
III. Created a new custom widget component for displaying Health bars. Instead of relying on a standard widget component that requires writing additional logic for each blueprint class, this custom component will work out of the box as long as the owning actor also has a “BPC_Hitpoints” component.
IV. Replaced the existing custom Damage interface (that supported passing in crit dmg data) system with Unreal’s native damage system. Critical Hit Damage calculation can now be calculated before passing the damage by calling the global function CalculateDamage from any actor
Additional Notes:
- I’ve shared a new tutorial on how to create your own custom Hero units in 3 simple steps: Introducing Hero units to Tower Defense Starter Kit
- For more information on changes to the Damage framework in this update: Why I reverted back to Unreal's native damage framework in Tower Defense Starter Kit
Upcoming Features:
- XP system for Hero units to level up through combat
- Hero selection through the pre-mission Loadout Menu