What is up guys! I’m new at programming and man… this is a hard one.
I was praticing and trying to create a combat system (a bit) like this:
(BRKsEDU playing Sunset Overdrive by Insomniac Games, 2014)
In this short video i edited and uploaded, you can notice that, when the player press the melee attack button, the player character gets - almost instantly - close to the enemy and also push him backwards. There’s a target locking and target selecting system (based on the direction, i guess) aswell. I spent some days trying to reach that, but i got lost and failed so hard. (I know it’s not that simple, but anyways…)
All i’ve done nicely 'til now was the player character getting the enemy position (transform.position = target.transform.position), and i don’t even know if that’s the best way to do that. So, it’s missing the rotation towards the enemy, the pushing action and that target stuff.
Finally, if you ladies, gentlemen and capitains could help giving me some ideas, i would thank you a lot!!!1111
Thank you for the attention.
Bren.