Creating Simple Mechanics Using UE4
Today I learned how to create a basic health and damage system in Unreal Engine. I also learned how to launch the player backwards when damage was inflicted. These mechanics are an essential to nearly all games which is why it was a good starting point for my development in game mechanics.
This blueprint was created to create the health and damage.
This is the second part of the blueprint to create health on the player as there's separate coding on the character, and then on the object of which is causing damage or increasing health.
This is the second part of the blueprint to create damage on the player as there's separate coding on the character, and then on the object of which is causing damage or increasing health.
This is a blueprint that was created to enable the player to pick up object and increase the players health. This principle could be reversed and used to do the opposite such as an object that reduces health
This blueprints purpose was to create the knock back as discussed above. When the player inflicts damage the result will be the player being knocked back from the source of damage to indicate injury.
These final blueprints were by far the most complex blueprints due to their purpose of enabling the player to spawn a health pick up that works in the same way as the pickup that stands alone on the map. This blueprint wasn't only helpful to health side of things, as this can be applied to any type of pickup meaning this code is extremely versatile. To put this into test I set a separate key to create an explosion to demonstrate the effect.







Comments
Post a Comment