Top-Down Game Click Damage
I'm trying to create an RPG game and the way the default player controls are set up are perfect. How would I be able to keep that and also be able to attack or do damage to an object when clicking on it (and using other keys)? I'm wanting the controls to be very Diablo-like.
Okay here is my simple setup. This should help you get in the right direction.
We have to create 2 Actors, a Health Modifying Actor (Health Pot, Floor Mines, etc) and A Monster. The Controller in this example is from the Top Down Blueprint Project.
Health Modifier is simply interacting, it can change health or trigger an event such as Pick Up.
We then declare a tag in the Monster Blueprint to differentiate this Actor from other Players and such. Actions for the monster will be within its own Blueprint.
Player Controller detects Actor is Monster then Attacks.
We bind OnTakeAnyDamage Event to receive Damage from outside sources such as the Monster or the floor mine I created in this example.
Health Modifier from Within Actor Blueprint
A Monster from Within Actor Blueprint
answered Apr 08 '14 at 07:34 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here