Thursday, October 15, 2015

HW5

This blueprint represents a health pick for the player in the game. The static mesh is a simple material sphere with an interesting pattern from the StarterContent. The level designer will simply place as many of these blueprints in the level as desired. The code for the blueprint functions in this manner: when the "hero" overlaps (and only the hero) with the sphere, the code will call the AffectHealth function on the HeroCharacter object, which will ultimately add a maximum of 50 health points. The blueprint also ensures that the characters in the game will not bump into  the object but pass through. Also, it takes care of the detail that if the hero already has the maximum amount of health, the item will not be "picked up," and subsequently destroyed.





No comments:

Post a Comment