How would you do an attacking system like this? Where once you lress the attack input, the character goes into direction of the targeted enemy until it hits?
There would be as many ways as there are people. The implementation really depends on the details and how you handle things atm. On the most basic level it could be a matter of obtaining direction to the target and moving there faster than your usual speed:
You may want to combine with flying mode and some other more fancy bits, ofc. Hitting a target or releasing the attack key would close the gate and reset the modified attributes.
Thank you! I tried to apply that and came up with this. I still have a couple of errors - 1st: the character doesn’t go back to normal walk/speed after the attack. 2nd: while getting close to the enemy the character walks, I’d want him to be kind of floating.
Here is my BP and video of game
What I suggested was merely an idea, those number need to be reverted when the attack finishes, ofc. You probably have a good idea when is the right time to do so.
while getting close to the enemy the character walks, I’d want him to be kind of floating.
Here is my BP and video of game
Look into how the movement component works - it actually supports flying (among other things):
There’s better info in the tuts online than I could ever provide on this very topic, this is rather vast!
Also floating can be just walking with a different animation. Smoke & mirrors.
This is where I’m at rn. After I start the animation in the air, the system still thinks I haven’t lended so I can’t jump anymore (I set the character to fly when going towards the enemy)